diff options
author | kobewi <kobewi4e@gmail.com> | 2024-06-27 19:17:50 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2024-06-27 19:17:50 +0200 |
commit | bef2e62c8841a3e94f2ec4320686bd290ba61c51 (patch) | |
tree | 01deaa9bae021c431e2d25d9b220f7f2608b2ae9 /scene/main/node.cpp | |
parent | cae2f853dcd1ecc26ca68de08cec62089dee1f26 (diff) | |
download | redot-engine-bef2e62c8841a3e94f2ec4320686bd290ba61c51.tar.gz |
Fix duplicating nodes with Array properties
Diffstat (limited to 'scene/main/node.cpp')
-rw-r--r-- | scene/main/node.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp index ae8e2a493d..5bbf8ebff4 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -2907,9 +2907,8 @@ void Node::_duplicate_properties(const Node *p_root, const Node *p_original, Nod arr[i] = p_copy->get_node_or_null(p_original->get_path_to(property_node)); } } - value = arr; - p_copy->set(name, value); } + p_copy->set(name, arr); } else { p_copy->set(name, value); } |