You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Replicate load-as-placeholder state on node duplication
(cherry picked from commit 6aecf91e4f)
This commit is contained in:
committed by
Rémi Verschelde
parent
986b99ed5c
commit
08af6e0407
@@ -1963,6 +1963,7 @@ Node *Node::_duplicate(int p_flags, Map<const Node *, Node *> *r_duplimap) const
|
|||||||
#endif
|
#endif
|
||||||
node = res->instance(ges);
|
node = res->instance(ges);
|
||||||
ERR_FAIL_COND_V(!node, nullptr);
|
ERR_FAIL_COND_V(!node, nullptr);
|
||||||
|
node->set_scene_instance_load_placeholder(get_scene_instance_load_placeholder());
|
||||||
|
|
||||||
instanced = true;
|
instanced = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user