diff options
author | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2019-05-24 15:27:22 +0200 |
---|---|---|
committer | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2019-05-24 15:27:22 +0200 |
commit | 3f174c86d0c688bba6900b90bb5fda1316eae04f (patch) | |
tree | 1e713059efa1066f1b7024c50c09f0971faa37c6 /scene/main/node.cpp | |
parent | 71d46fffcf39719fe2bfe9e64e78a08774546cb7 (diff) | |
download | redot-engine-3f174c86d0c688bba6900b90bb5fda1316eae04f.tar.gz |
Fixed scene tree update after changing node name in tool script
Diffstat (limited to 'scene/main/node.cpp')
-rw-r--r-- | scene/main/node.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp index e80de68e3b..368dea7649 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -949,6 +949,7 @@ void Node::set_name(const String &p_name) { if (is_inside_tree()) { emit_signal("renamed"); + get_tree()->node_renamed(this); get_tree()->tree_changed(); } } |