From f14dd22553c4e63a08df6cbe7c2695b05ce08744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ralf=20H=C3=B6lzemer?= Date: Sun, 21 Sep 2014 17:56:19 +0200 Subject: [PATCH] Fix #395: change node name does not refresh in the inspector until you reselect it - added missing _node_renamed function to SceneTreeDock --- tools/editor/scene_tree_dock.cpp | 6 ++++++ tools/editor/scene_tree_dock.h | 1 + 2 files changed, 7 insertions(+) diff --git a/tools/editor/scene_tree_dock.cpp b/tools/editor/scene_tree_dock.cpp index 87336b2f2ef..f693036bc2a 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 &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 e55a54377a2..ac5391f3b9d 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