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:
parent
70de992afe
commit
bdb5852e28
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue