summaryrefslogtreecommitdiffstats
path: root/scene/main/node.cpp
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2024-06-27 19:17:50 +0200
committerkobewi <kobewi4e@gmail.com>2024-06-27 19:17:50 +0200
commitbef2e62c8841a3e94f2ec4320686bd290ba61c51 (patch)
tree01deaa9bae021c431e2d25d9b220f7f2608b2ae9 /scene/main/node.cpp
parentcae2f853dcd1ecc26ca68de08cec62089dee1f26 (diff)
downloadredot-engine-bef2e62c8841a3e94f2ec4320686bd290ba61c51.tar.gz
Fix duplicating nodes with Array properties
Diffstat (limited to 'scene/main/node.cpp')
-rw-r--r--scene/main/node.cpp3
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);
}