removed redundant error from meshdatatool

pull/22925/head
clayjohn 2018-10-10 22:42:14 +07:00
parent 4c1a5d9cfe
commit b6a23afa80
1 changed files with 0 additions and 2 deletions

@ -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);