From 825030746aeecf61490892692c184a59211ff124 Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 23 Mar 2021 10:57:35 +0100 Subject: [PATCH] Remove a newly added type check, as i just realized it's unnecessary. --- mesh_data_resource.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/mesh_data_resource.cpp b/mesh_data_resource.cpp index 6a2ada1..3aab674 100644 --- a/mesh_data_resource.cpp +++ b/mesh_data_resource.cpp @@ -101,11 +101,6 @@ void MeshDataResource::recompute_aabb() { } Variant arr = _arrays[Mesh::ARRAY_VERTEX]; - - if (arr.get_type() != Variant::POOL_VECTOR3_ARRAY) { - return; - } - PoolVector vertices = arr; int len = vertices.size();