diff options
author | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2017-01-29 11:49:58 +0100 |
---|---|---|
committer | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2017-01-29 11:56:10 +0100 |
commit | e4cc483f4ca67d09260611192aeb4c269081835e (patch) | |
tree | f443e0614e6a01fcb982497a6ccb82db30ea87f1 /tools | |
parent | e8d34365085c2321acb0bd35aabbad293c74e744 (diff) |
Replicate load-as-placeholder state on node duplication
Cherry-picked from 936f2e3b4e9fb657f6c874020428f8159356d923
Diffstat (limited to 'tools')
-rw-r--r-- | tools/editor/scene_tree_dock.cpp | 1 |
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()); |