diff options
author | warriormaster12 <streng.alexander@outlook.com> | 2024-03-27 11:51:24 +0200 |
---|---|---|
committer | warriormaster12 <streng.alexander@outlook.com> | 2024-03-27 11:51:29 +0200 |
commit | 9533543aa50004f7e6871b512406974924bb5372 (patch) | |
tree | ae88fda5ce59a7417ff0ec22124baaf61308ab38 | |
parent | 9851c1bdd893a6194fdbf1820d2fa07449d4f9fb (diff) | |
download | redot-engine-9533543aa50004f7e6871b512406974924bb5372.tar.gz |
Fix duplicating resources regression
-rw-r--r-- | scene/main/node.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp index 604a322a8b..ad3495a881 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -2737,9 +2737,7 @@ Node *Node::_duplicate(int p_flags, HashMap<const Node *, Node *> *r_duplimap) c } } else { - if (value.get_type() != Variant::OBJECT && (value.get_type() != Variant::ARRAY || static_cast<Array>(value).get_typed_builtin() != Variant::OBJECT)) { - current_node->set(name, value); - } + current_node->set(name, value); } } } |