You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-04 17:04:49 +00:00
Fix right clicking sub nodes after renaming parent
(cherry picked from commit f25a698f80)
This commit is contained in:
@@ -541,7 +541,7 @@ void SceneTreeEditor::_node_removed(Node *p_node) {
|
||||
}
|
||||
|
||||
void SceneTreeEditor::_node_renamed(Node *p_node) {
|
||||
if (!get_scene_node()->is_a_parent_of(p_node)) {
|
||||
if (p_node != get_scene_node() && !get_scene_node()->is_a_parent_of(p_node)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user