Skip to content

Commit

Permalink
Merge pull request #89957 from warriormaster12/regress-dup
Browse files Browse the repository at this point in the history
Fix regression when duplicating a node with a resource attached
  • Loading branch information
akien-mga committed Mar 28, 2024
2 parents 3881778 + 9533543 commit af08342
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scene/main/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2804,9 +2804,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);
}
}
}
Expand Down

0 comments on commit af08342

Please sign in to comment.