From b6a23afa80cf0919a5fb27b88d8c9fd529ab1913 Mon Sep 17 00:00:00 2001 From: clayjohn Date: Wed, 10 Oct 2018 22:42:14 -0700 Subject: [PATCH] removed redundant error from meshdatatool --- scene/resources/mesh_data_tool.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/scene/resources/mesh_data_tool.cpp b/scene/resources/mesh_data_tool.cpp index a5449e1fe86..7af9086ab7f 100644 --- a/scene/resources/mesh_data_tool.cpp +++ b/scene/resources/mesh_data_tool.cpp @@ -41,8 +41,6 @@ void MeshDataTool::clear() { Error MeshDataTool::create_from_surface(const Ref &p_mesh, int p_surface) { - ERR_FAIL_COND_V(p_mesh.is_null(), ERR_INVALID_PARAMETER); - ERR_FAIL_COND_V(p_mesh.is_null(), ERR_INVALID_PARAMETER); ERR_FAIL_COND_V(p_mesh->surface_get_primitive_type(p_surface) != Mesh::PRIMITIVE_TRIANGLES, ERR_INVALID_PARAMETER);