mirror of
https://github.com/Relintai/mesh_data_resource.git
synced 2025-02-20 17:14:31 +01:00
Remove a newly added type check, as i just realized it's unnecessary.
This commit is contained in:
parent
e56a894b99
commit
825030746a
@ -101,11 +101,6 @@ void MeshDataResource::recompute_aabb() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Variant arr = _arrays[Mesh::ARRAY_VERTEX];
|
Variant arr = _arrays[Mesh::ARRAY_VERTEX];
|
||||||
|
|
||||||
if (arr.get_type() != Variant::POOL_VECTOR3_ARRAY) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
PoolVector<Vector3> vertices = arr;
|
PoolVector<Vector3> vertices = arr;
|
||||||
int len = vertices.size();
|
int len = vertices.size();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user