Cleanup: Remove mesh valid assertions in debug builds

These are useful for development, but when the primitive nodes
aren't actively changing, the performance cost is not worth it.
This commit is contained in:
Hans Goudey 2021-12-20 12:46:33 -06:00
parent 70de992afe
commit bdb5852e28
3 changed files with 0 additions and 5 deletions

View File

@ -213,8 +213,6 @@ static void node_geo_exec(GeoNodeExecParams params)
Mesh *mesh = create_circle_mesh(radius, verts_num, fill);
BLI_assert(BKE_mesh_is_valid(mesh));
params.set_output("Mesh", GeometrySet::create_with_mesh(mesh));
}

View File

@ -212,7 +212,6 @@ static void node_geo_exec(GeoNodeExecParams params)
}
Mesh *mesh = create_grid_mesh(verts_x, verts_y, size_x, size_y);
BLI_assert(BKE_mesh_is_valid(mesh));
BKE_id_material_eval_ensure_default_slot(&mesh->id);
params.set_output("Mesh", GeometrySet::create_with_mesh(mesh));

View File

@ -287,8 +287,6 @@ static Mesh *create_uv_sphere_mesh(const float radius, const int segments, const
calculate_sphere_uvs(mesh, segments, rings);
BLI_assert(BKE_mesh_is_valid(mesh));
return mesh;
}