Merge pull request #93672 from KoBeWi/duplicarray

Fix duplicating nodes with Array properties
This commit is contained in:
Rémi Verschelde 2024-06-28 11:35:14 +02:00
commit 17a0a080e7
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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);
}