Fix set_array. Apparently duplicate(true) doesn't work too well in this case.

This commit is contained in:
Relintai 2021-03-23 10:36:00 +01:00
parent 02d51e87d6
commit e56a894b99

View File

@ -34,9 +34,7 @@ Array MeshDataResource::get_array() {
return _arrays;
}
void MeshDataResource::set_array(const Array &p_arrays) {
_arrays.clear();
_arrays = p_arrays.duplicate(true);
_arrays = p_arrays;
recompute_aabb();
}