diff options
author | Nathan Franke <natfra@pm.me> | 2021-04-12 06:26:56 -0500 |
---|---|---|
committer | Nathan Franke <natfra@pm.me> | 2021-07-15 05:42:34 -0500 |
commit | 022a061571451268c8af88347c17c3f86012cd37 (patch) | |
tree | 370ab99e827bc96c0029f35adc411147eaa45600 | |
parent | 499be1fb67bbadb11b54763cf6fe04ac1784877b (diff) |
Do not update scene tree dock when node edited outside of it
-rw-r--r-- | editor/scene_tree_editor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/scene_tree_editor.cpp b/editor/scene_tree_editor.cpp index b2c66ee1e7..5958a09169 100644 --- a/editor/scene_tree_editor.cpp +++ b/editor/scene_tree_editor.cpp @@ -526,6 +526,10 @@ void SceneTreeEditor::_node_removed(Node *p_node) { } void SceneTreeEditor::_node_renamed(Node *p_node) { + if (!get_scene_node()->is_ancestor_of(p_node)) { + return; + } + emit_signal("node_renamed"); if (!tree_dirty) { |