summaryrefslogtreecommitdiff
path: root/tools/editor
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-04-18 08:09:53 +0200
committerRémi Verschelde <remi@verschelde.fr>2016-04-18 08:09:53 +0200
commitf124b5e0acc0e06eb1e641902c68efd96cf7281a (patch)
treeb0268c3978fd4dc89f878e814d6df5a2faf5921b /tools/editor
parentc04b3edac4fb1f99f7a58bb3b634954666db47e6 (diff)
parent3029f5ee02483021aadd5d5bc48becb2490791f1 (diff)
Merge pull request #4299 from neikeq/pr-issue-4297
Keep editable instances data when replacing tree root node
Diffstat (limited to 'tools/editor')
-rw-r--r--tools/editor/scene_tree_dock.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/editor/scene_tree_dock.cpp b/tools/editor/scene_tree_dock.cpp
index 6b2961ea72..c6115ba87a 100644
--- a/tools/editor/scene_tree_dock.cpp
+++ b/tools/editor/scene_tree_dock.cpp
@@ -1317,6 +1317,7 @@ void SceneTreeDock::_create() {
if (n==edited_scene) {
edited_scene=newnode;
editor->set_edited_scene(newnode);
+ newnode->set_editable_instances(n->get_editable_instances());
}
//small hack to make collisionshapes and other kind of nodes to work