mirror of
https://github.com/Relintai/mesh_data_resource.git
synced 2025-02-20 17:14:31 +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;
|
return _arrays;
|
||||||
}
|
}
|
||||||
void MeshDataResource::set_array(const Array &p_arrays) {
|
void MeshDataResource::set_array(const Array &p_arrays) {
|
||||||
_arrays.clear();
|
_arrays = p_arrays;
|
||||||
|
|
||||||
_arrays = p_arrays.duplicate(true);
|
|
||||||
|
|
||||||
recompute_aabb();
|
recompute_aabb();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user