From bef2e62c8841a3e94f2ec4320686bd290ba61c51 Mon Sep 17 00:00:00 2001 From: kobewi Date: Thu, 27 Jun 2024 19:17:50 +0200 Subject: [PATCH] Fix duplicating nodes with Array properties --- scene/main/node.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scene/main/node.cpp b/scene/main/node.cpp index ae8e2a493d6..5bbf8ebff43 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); }