summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-01-05 14:59:00 +0100
committerGitHub <noreply@github.com>2021-01-05 14:59:00 +0100
commitc44a14496ab2ccc9d1e730a03394f3c501170c12 (patch)
treea1d56172db5e8a063db5538d0c58690a8cd8a4a0 /editor
parent0abd7e7b356a1bff69e3ba1a131757eb3bbc21f3 (diff)
parentf5d51288b895df5495871586b33977ab76ac02b8 (diff)
Merge pull request #44934 from KoBeWi/p-p-push_the_item
Properly edit the instanced node in the inspector
Diffstat (limited to 'editor')
-rw-r--r--editor/scene_tree_dock.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp
index f317ac581f..17d3883689 100644
--- a/editor/scene_tree_dock.cpp
+++ b/editor/scene_tree_dock.cpp
@@ -228,6 +228,7 @@ void SceneTreeDock::_perform_instance_scenes(const Vector<String> &p_files, Node
}
editor_data->get_undo_redo().commit_action();
+ editor->push_item(instances[instances.size() - 1]);
}
void SceneTreeDock::_replace_with_branch_scene(const String &p_file, Node *base) {