mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
removed redundant error from meshdatatool
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user