summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-07-15 14:24:55 +0200
committerGitHub <noreply@github.com>2021-07-15 14:24:55 +0200
commit912792cfe6e5432067525554b05f6d965487fd18 (patch)
tree15f49749b476d756a3e0389c3ac2a1cff5272f49
parentaedde03424e5b63688733bde68b7bf8df4382d73 (diff)
parent022a061571451268c8af88347c17c3f86012cd37 (diff)
Merge pull request #47825 from nathanfranke/fix-super-annoying-bug-lol
Do not change scene on save when debugging
-rw-r--r--editor/scene_tree_editor.cpp4
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) {