Replicate load-as-placeholder state on node duplication

Cherry-picked from 936f2e3b4e
This commit is contained in:
Pedro J. Estébanez 2017-01-29 11:49:58 +01:00
parent e8d3436508
commit e4cc483f4c

View File

@ -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());