Skip to content

Commit

Permalink
Merge pull request #93672 from KoBeWi/duplicarray
Browse files Browse the repository at this point in the history
Fix duplicating nodes with Array properties
  • Loading branch information
akien-mga committed Jun 28, 2024
2 parents a647789 + bef2e62 commit 17a0a08
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scene/main/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2907,9 +2907,8 @@ void Node::_duplicate_properties(const Node *p_root, const Node *p_original, Nod
arr[i] = p_copy->get_node_or_null(p_original->get_path_to(property_node));
}
}
value = arr;
p_copy->set(name, value);
}
p_copy->set(name, arr);
} else {
p_copy->set(name, value);
}
Expand Down

0 comments on commit 17a0a08

Please sign in to comment.