From 9533543aa50004f7e6871b512406974924bb5372 Mon Sep 17 00:00:00 2001 From: warriormaster12 Date: Wed, 27 Mar 2024 11:51:24 +0200 Subject: [PATCH] Fix duplicating resources regression --- scene/main/node.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scene/main/node.cpp b/scene/main/node.cpp index 604a322a8b11..ad3495a881c8 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -2737,9 +2737,7 @@ Node *Node::_duplicate(int p_flags, HashMap *r_duplimap) c } } else { - if (value.get_type() != Variant::OBJECT && (value.get_type() != Variant::ARRAY || static_cast(value).get_typed_builtin() != Variant::OBJECT)) { - current_node->set(name, value); - } + current_node->set(name, value); } } }