summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-01-16 10:30:55 +0100
committerGitHub <noreply@github.com>2022-01-16 10:30:55 +0100
commite465e6d2ab80354d1d1d223bb551454e3664e6a9 (patch)
treee30ec52a68a7aeeb4751432bdf1ec37b5f2a2542
parent12d683e93c2bbbe805f90c19a35e23a9496fcfb8 (diff)
parent6aecf91e4f3d6d8a89b93fc549132a049478e73a (diff)
Merge pull request #56831 from timothyqiu/load-placeholder-dup
Replicate load-as-placeholder state on node duplication
-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;