From 6aecf91e4f3d6d8a89b93fc549132a049478e73a Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Sun, 16 Jan 2022 15:08:03 +0800 Subject: Replicate load-as-placeholder state on node duplication --- scene/main/node.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/main/node.cpp b/scene/main/node.cpp index 8b5883a742..9d96c71113 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -1986,6 +1986,7 @@ Node *Node::_duplicate(int p_flags, Map *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; -- cgit v1.2.3