Fix binding of default value in EditorSpatialGizmoPlugin::get_material()
It was commented for some reason I can't remember.
(cherry picked from commit e6949dae72
)
This commit is contained in:
parent
e4b3461441
commit
bdc6f2fd95
@ -122,7 +122,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="EditorSpatialGizmo">
|
<argument index="1" name="gizmo" type="EditorSpatialGizmo" default="null">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Gets material from the internal list of materials. If an [EditorSpatialGizmo] is provided, it will try to get the corresponding variant (selected and/or editable).
|
Gets material from the internal list of materials. If an [EditorSpatialGizmo] is provided, it will try to get the corresponding variant (selected and/or editable).
|
||||||
|
@ -6848,7 +6848,7 @@ void EditorSpatialGizmoPlugin::_bind_methods() {
|
|||||||
ClassDB::bind_method(D_METHOD("create_handle_material", "name", "billboard"), &EditorSpatialGizmoPlugin::create_handle_material, DEFVAL(false));
|
ClassDB::bind_method(D_METHOD("create_handle_material", "name", "billboard"), &EditorSpatialGizmoPlugin::create_handle_material, DEFVAL(false));
|
||||||
ClassDB::bind_method(D_METHOD("add_material", "name", "material"), &EditorSpatialGizmoPlugin::add_material);
|
ClassDB::bind_method(D_METHOD("add_material", "name", "material"), &EditorSpatialGizmoPlugin::add_material);
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("get_material", "name", "gizmo"), &EditorSpatialGizmoPlugin::get_material); //, DEFVAL(Ref<EditorSpatialGizmo>()));
|
ClassDB::bind_method(D_METHOD("get_material", "name", "gizmo"), &EditorSpatialGizmoPlugin::get_material, DEFVAL(Ref<EditorSpatialGizmo>()));
|
||||||
|
|
||||||
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"));
|
||||||
|
Loading…
Reference in New Issue
Block a user