summaryrefslogtreecommitdiff
path: root/scene/main/node.cpp
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2022-01-16 15:08:03 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2022-01-16 15:08:03 +0800
commit6aecf91e4f3d6d8a89b93fc549132a049478e73a (patch)
tree5bc6e65d104821c16c6b3079901d4211e411e2d2 /scene/main/node.cpp
parent1cff9a2e49d42187d4e3729cddbaf7fdbcced0bd (diff)
Replicate load-as-placeholder state on node duplication
Diffstat (limited to 'scene/main/node.cpp')
-rw-r--r--scene/main/node.cpp1
1 files changed, 1 insertions, 0 deletions
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<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;