mirror of
https://github.com/godotengine/godot.git
synced 2025-01-09 11:37:35 +00:00
removed redundant error from meshdatatool
This commit is contained in:
parent
4c1a5d9cfe
commit
b6a23afa80
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user