Fix bound return type on get_priority.
Also adds a description explaining gizmo priority. Inferred from:e4363d001a/editor/plugins/spatial_editor_plugin.cpp (L5867-L5880)
e4363d001a/editor/plugins/spatial_editor_plugin.cpp (L6462-L6470)
(cherry picked from commitc6919a13da
)
This commit is contained in:
parent
0586c856f6
commit
d05a07235c
2 changed files with 2 additions and 2 deletions
|
@ -136,7 +136,7 @@
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_priority" qualifiers="virtual">
|
<method name="get_priority" qualifiers="virtual">
|
||||||
<return type="String">
|
<return type="int">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Override this method to set the gizmo's priority. Higher values correspond to higher priority. If a gizmo with higher priority conflicts with another gizmo, only the gizmo with higher priority will be used.
|
Override this method to set the gizmo's priority. Higher values correspond to higher priority. If a gizmo with higher priority conflicts with another gizmo, only the gizmo with higher priority will be used.
|
||||||
|
|
|
@ -6624,7 +6624,7 @@ void EditorSpatialGizmoPlugin::_bind_methods() {
|
||||||
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::STRING, "get_priority"));
|
BIND_VMETHOD(MethodInfo(Variant::INT, "get_priority"));
|
||||||
BIND_VMETHOD(MethodInfo(Variant::BOOL, "can_be_hidden"));
|
BIND_VMETHOD(MethodInfo(Variant::BOOL, "can_be_hidden"));
|
||||||
BIND_VMETHOD(MethodInfo(Variant::BOOL, "is_selectable_when_hidden"));
|
BIND_VMETHOD(MethodInfo(Variant::BOOL, "is_selectable_when_hidden"));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue