summaryrefslogtreecommitdiff
path: root/scene/resources
diff options
context:
space:
mode:
authorclayjohn <clayjohn@shaw.ca>2018-10-10 22:42:14 -0700
committerclayjohn <clayjohn@shaw.ca>2018-10-10 22:42:14 -0700
commitb6a23afa80cf0919a5fb27b88d8c9fd529ab1913 (patch)
treef75dbc3300d084f39c78ce36ed4479c509bc966f /scene/resources
parent4c1a5d9cfe2da761bfe17d52126deabc1f1c1bd3 (diff)
removed redundant error from meshdatatool
Diffstat (limited to 'scene/resources')
-rw-r--r--scene/resources/mesh_data_tool.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/scene/resources/mesh_data_tool.cpp b/scene/resources/mesh_data_tool.cpp
index a5449e1fe8..7af9086ab7 100644
--- a/scene/resources/mesh_data_tool.cpp
+++ b/scene/resources/mesh_data_tool.cpp
@@ -42,8 +42,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);
Array arrays = p_mesh->surface_get_arrays(p_surface);