diff options
-rw-r--r-- | tools/editor/scene_tree_dock.cpp | 6 | ||||
-rw-r--r-- | tools/editor/scene_tree_dock.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tools/editor/scene_tree_dock.cpp b/tools/editor/scene_tree_dock.cpp index 87336b2f2e..f693036bc2 100644 --- a/tools/editor/scene_tree_dock.cpp +++ b/tools/editor/scene_tree_dock.cpp @@ -450,6 +450,11 @@ void SceneTreeDock::_node_selected() { editor->push_item(node); } +void SceneTreeDock::_node_renamed() { + + _node_selected(); +} + Node *SceneTreeDock::_duplicate(Node *p_node, Map<Node*,Node*> &duplimap) { Node *node=NULL; @@ -1134,6 +1139,7 @@ void SceneTreeDock::_bind_methods() { ObjectTypeDB::bind_method(_MD("_node_reparent"),&SceneTreeDock::_node_reparent); ObjectTypeDB::bind_method(_MD("_set_owners"),&SceneTreeDock::_set_owners); ObjectTypeDB::bind_method(_MD("_node_selected"),&SceneTreeDock::_node_selected); + ObjectTypeDB::bind_method(_MD("_node_renamed"),&SceneTreeDock::_node_renamed); ObjectTypeDB::bind_method(_MD("_script_created"),&SceneTreeDock::_script_created); ObjectTypeDB::bind_method(_MD("_load_request"),&SceneTreeDock::_load_request); ObjectTypeDB::bind_method(_MD("_script_open_request"),&SceneTreeDock::_script_open_request); diff --git a/tools/editor/scene_tree_dock.h b/tools/editor/scene_tree_dock.h index e55a54377a..ac5391f3b9 100644 --- a/tools/editor/scene_tree_dock.h +++ b/tools/editor/scene_tree_dock.h @@ -104,6 +104,7 @@ class SceneTreeDock : public VBoxContainer { void _node_selected(); + void _node_renamed(); void _script_created(Ref<Script> p_script); void _delete_confirm(); |