Explorar o código

removed redundant error from meshdatatool

clayjohn %!s(int64=6) %!d(string=hai) anos
pai
achega
b6a23afa80
Modificáronse 1 ficheiros con 0 adicións e 2 borrados
  1. 0 2
      scene/resources/mesh_data_tool.cpp

+ 0 - 2
scene/resources/mesh_data_tool.cpp

@@ -41,8 +41,6 @@ void MeshDataTool::clear() {
 
 Error MeshDataTool::create_from_surface(const Ref<ArrayMesh> &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);