You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Merge pull request #43861 from JFonS/fix_gizmo_defval
Fix binding of default value in EditorSpatialGizmoPlugin::get_material()
This commit is contained in:
@@ -125,7 +125,7 @@
|
|||||||
</return>
|
</return>
|
||||||
<argument index="0" name="name" type="String">
|
<argument index="0" name="name" type="String">
|
||||||
</argument>
|
</argument>
|
||||||
<argument index="1" name="gizmo" type="EditorNode3DGizmo">
|
<argument index="1" name="gizmo" type="EditorNode3DGizmo" default="null">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Gets material from the internal list of materials. If an [EditorNode3DGizmo] is provided, it will try to get the corresponding variant (selected and/or editable).
|
Gets material from the internal list of materials. If an [EditorNode3DGizmo] is provided, it will try to get the corresponding variant (selected and/or editable).
|
||||||
|
|||||||
@@ -6847,7 +6847,7 @@ void EditorNode3DGizmoPlugin::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("create_handle_material", "name", "billboard", "texture"), &EditorNode3DGizmoPlugin::create_handle_material, DEFVAL(false), DEFVAL(Variant()));
|
ClassDB::bind_method(D_METHOD("create_handle_material", "name", "billboard", "texture"), &EditorNode3DGizmoPlugin::create_handle_material, DEFVAL(false), DEFVAL(Variant()));
|
||||||
ClassDB::bind_method(D_METHOD("add_material", "name", "material"), &EditorNode3DGizmoPlugin::add_material);
|
ClassDB::bind_method(D_METHOD("add_material", "name", "material"), &EditorNode3DGizmoPlugin::add_material);
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("get_material", "name", "gizmo"), &EditorNode3DGizmoPlugin::get_material); //, DEFVAL(Ref<EditorNode3DGizmo>()));
|
ClassDB::bind_method(D_METHOD("get_material", "name", "gizmo"), &EditorNode3DGizmoPlugin::get_material, DEFVAL(Ref<EditorNode3DGizmo>()));
|
||||||
|
|
||||||
BIND_VMETHOD(MethodInfo(Variant::STRING, "get_name"));
|
BIND_VMETHOD(MethodInfo(Variant::STRING, "get_name"));
|
||||||
BIND_VMETHOD(MethodInfo(Variant::INT, "get_priority"));
|
BIND_VMETHOD(MethodInfo(Variant::INT, "get_priority"));
|
||||||
|
|||||||
Reference in New Issue
Block a user