Skip to content

Commit af08342

Browse files
committed
Merge pull request godotengine#89957 from warriormaster12/regress-dup
Fix regression when duplicating a node with a resource attached
2 parents 3881778 + 9533543 commit af08342

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
@@ -2804,9 +2804,7 @@ Node *Node::_duplicate(int p_flags, HashMap<const Node *, Node *> *r_duplimap) c
28042804
}
28052805

28062806
} else {
2807-
if (value.get_type() != Variant::OBJECT && (value.get_type() != Variant::ARRAY || static_cast<Array>(value).get_typed_builtin() != Variant::OBJECT)) {
2808-
current_node->set(name, value);
2809-
}
2807+
current_node->set(name, value);
28102808
}
28112809
}
28122810
}

0 commit comments

Comments
 (0)