Skip to content

Commit

Permalink
Merge pull request #22925 from clayjohn/MeshDataToolError
Browse files Browse the repository at this point in the history
Removed redundant error from MeshDataTool
  • Loading branch information
akien-mga authored Nov 1, 2018
2 parents 200c2e7 + b6a23af commit 3f46295
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions scene/resources/mesh_data_tool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 3f46295

Please sign in to comment.