mirror of
https://github.com/Relintai/mesh_data_resource.git
synced 2024-11-12 10:15:21 +01:00
Fix set_array. Apparently duplicate(true) doesn't work too well in this case.
This commit is contained in:
parent
02d51e87d6
commit
e56a894b99
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user