Skip to content

Commit

Permalink
removed redundant error from meshdatatool
Browse files Browse the repository at this point in the history
  • Loading branch information
clayjohn committed Oct 11, 2018
1 parent 4c1a5d9 commit b6a23af
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 b6a23af

Please sign in to comment.