diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-10-07 23:14:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-07 23:14:07 +0200 |
commit | f0b26a616059d1fcde0c1a597ba77a65614261e1 (patch) | |
tree | 99dc46143dc97eb0975b7d038f6d141cebbb55fc | |
parent | 3d05b94212d1f587cea72a298027b9330c965236 (diff) | |
parent | f25a698f8084d547d1486e814315b588f1d4eb13 (diff) |
Merge pull request #52962 from mujpao/fix-right-click-sub-nodes
-rw-r--r-- | editor/scene_tree_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/scene_tree_editor.cpp b/editor/scene_tree_editor.cpp index c944068455..73523474ef 100644 --- a/editor/scene_tree_editor.cpp +++ b/editor/scene_tree_editor.cpp @@ -527,7 +527,7 @@ void SceneTreeEditor::_node_removed(Node *p_node) { } void SceneTreeEditor::_node_renamed(Node *p_node) { - if (!get_scene_node()->is_ancestor_of(p_node)) { + if (p_node != get_scene_node() && !get_scene_node()->is_ancestor_of(p_node)) { return; } |