From e4cc483f4ca67d09260611192aeb4c269081835e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20J=2E=20Est=C3=A9banez?= Date: Sun, 29 Jan 2017 11:49:58 +0100 Subject: [PATCH] Replicate load-as-placeholder state on node duplication Cherry-picked from 936f2e3b4e9fb657f6c874020428f8159356d923 --- tools/editor/scene_tree_dock.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/editor/scene_tree_dock.cpp b/tools/editor/scene_tree_dock.cpp index b3e4c8ed70c..96b6686e2a2 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 &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());