Skip to content

Commit 9533543

Browse files
Fix duplicating resources regression
1 parent 9851c1b commit 9533543

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scene/main/node.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2737,9 +2737,7 @@ Node *Node::_duplicate(int p_flags, HashMap<const Node *, Node *> *r_duplimap) c
27372737
}
27382738

27392739
} else {
2740-
if (value.get_type() != Variant::OBJECT && (value.get_type() != Variant::ARRAY || static_cast<Array>(value).get_typed_builtin() != Variant::OBJECT)) {
2741-
current_node->set(name, value);
2742-
}
2740+
current_node->set(name, value);
27432741
}
27442742
}
27452743
}

0 commit comments

Comments
 (0)