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:
commit
6a01cf96b2
1 changed files with 1 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue