Merge pull request #52962 from mujpao/fix-right-click-sub-nodes

This commit is contained in:
Rémi Verschelde 2021-10-07 23:14:07 +02:00 committed by GitHub
commit f0b26a6160
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}