aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/spatial_editor_gizmos.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2016-07-10 13:08:13 -0300
committerGitHub2016-07-10 13:08:13 -0300
commit7bfb84af0816c3f0cd9c108ff401cc7dec2e4160 (patch)
tree3ce6bf66547e42d6587f10cd9974ec67f989744b /tools/editor/spatial_editor_gizmos.cpp
parent7af77e1b7b60a023508ad1b4589b58adc500ddb0 (diff)
parent914d670a7164b920d0b465950083aea7924de937 (diff)
downloadgodot-7bfb84af0816c3f0cd9c108ff401cc7dec2e4160.tar.gz
godot-7bfb84af0816c3f0cd9c108ff401cc7dec2e4160.tar.zst
godot-7bfb84af0816c3f0cd9c108ff401cc7dec2e4160.zip
Merge pull request #5611 from TheHX/spatial-gizmo
Fix EditorSpatialGizmo virtual functions not being called
Diffstat (limited to 'tools/editor/spatial_editor_gizmos.cpp')
-rw-r--r--tools/editor/spatial_editor_gizmos.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/editor/spatial_editor_gizmos.cpp b/tools/editor/spatial_editor_gizmos.cpp
index edc2fc513..480d33fd0 100644
--- a/tools/editor/spatial_editor_gizmos.cpp
+++ b/tools/editor/spatial_editor_gizmos.cpp
@@ -623,12 +623,11 @@ void EditorSpatialGizmo::_bind_methods() {
ObjectTypeDB::bind_method(_MD("add_unscaled_billboard","material:Material","default_scale"),&EditorSpatialGizmo::add_unscaled_billboard,DEFVAL(1));
ObjectTypeDB::bind_method(_MD("add_handles","handles","billboard","secondary"),&EditorSpatialGizmo::add_handles,DEFVAL(false),DEFVAL(false));
ObjectTypeDB::bind_method(_MD("set_spatial_node","node:Spatial"),&EditorSpatialGizmo::_set_spatial_node);
+ ObjectTypeDB::bind_method(_MD("clear"),&EditorSpatialGizmo::clear);
BIND_VMETHOD( MethodInfo("redraw"));
BIND_VMETHOD( MethodInfo(Variant::STRING,"get_handle_name",PropertyInfo(Variant::INT,"index")));
- {
- BIND_VMETHOD( MethodInfo("get_handle_value:Variant",PropertyInfo(Variant::INT,"index")));
- }
+ BIND_VMETHOD( MethodInfo("get_handle_value:Variant",PropertyInfo(Variant::INT,"index")));
BIND_VMETHOD( MethodInfo("set_handle",PropertyInfo(Variant::INT,"index"),PropertyInfo(Variant::OBJECT,"camera:Camera"),PropertyInfo(Variant::VECTOR2,"point")));
MethodInfo cm = MethodInfo("commit_handle",PropertyInfo(Variant::INT,"index"),PropertyInfo(Variant::NIL,"restore:Variant"),PropertyInfo(Variant::BOOL,"cancel"));
cm.default_arguments.push_back(false);