mirror of
https://github.com/godotengine/godot.git
synced 2024-12-09 10:09:20 +08:00
Fix right clicking sub nodes after renaming parent
This commit is contained in:
parent
a4b80cdad9
commit
f25a698f80
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user