Merge pull request #7671 from RandomShaper/load-placeholder-dup-2.1

Replicate load-as-placeholder state on node duplication (2.1)
This commit is contained in:
Rémi Verschelde 2017-02-02 08:14:02 +01:00 committed by GitHub
commit 6a01cf96b2

View file

@ -746,6 +746,7 @@ Node *SceneTreeDock::_duplicate(Node *p_node, Map<Node*,Node*> &duplimap) {
ERR_FAIL_COND_V(!sd.is_valid(),NULL);
node = sd->instance(true);
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 = ObjectTypeDB::instance(p_node->get_type());