summaryrefslogtreecommitdiff
path: root/tools/editor
diff options
context:
space:
mode:
authorPedro J. Estébanez <pedrojrulez@gmail.com>2017-01-29 11:49:58 +0100
committerPedro J. Estébanez <pedrojrulez@gmail.com>2017-01-29 11:56:10 +0100
commite4cc483f4ca67d09260611192aeb4c269081835e (patch)
treef443e0614e6a01fcb982497a6ccb82db30ea87f1 /tools/editor
parente8d34365085c2321acb0bd35aabbad293c74e744 (diff)
Replicate load-as-placeholder state on node duplication
Cherry-picked from 936f2e3b4e9fb657f6c874020428f8159356d923
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 b3e4c8ed70..96b6686e2a 100644
--- a/tools/editor/scene_tree_dock.cpp
+++ b/tools/editor/scene_tree_dock.cpp
@@ -768,6 +768,7 @@ Node *SceneTreeDock::_duplicate(Node *p_node, Map<Node*,Node*> &duplimap) {
ERR_FAIL_COND_V(!sd.is_valid(),NULL);
node = sd->instance(PackedScene::GEN_EDIT_STATE_INSTANCE);
ERR_FAIL_COND_V(!node,NULL);
+ node->set_scene_instance_load_placeholder(p_node->get_scene_instance_load_placeholder());
//node->generate_instance_state();
} else {
Object *obj = ClassDB::instance(p_node->get_class());