Merge pull request #56831 from timothyqiu/load-placeholder-dup

Replicate load-as-placeholder state on node duplication
This commit is contained in:
Rémi Verschelde 2022-01-16 10:30:55 +01:00 committed by GitHub
commit e465e6d2ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1986,6 +1986,7 @@ Node *Node::_duplicate(int p_flags, Map<const Node *, Node *> *r_duplimap) const
#endif
node = res->instantiate(ges);
ERR_FAIL_COND_V(!node, nullptr);
node->set_scene_instance_load_placeholder(get_scene_instance_load_placeholder());
instantiated = true;