diff options
Diffstat (limited to 'source/blender/modifiers/intern/MOD_boolean.cc')
-rw-r--r-- | source/blender/modifiers/intern/MOD_boolean.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/modifiers/intern/MOD_boolean.cc b/source/blender/modifiers/intern/MOD_boolean.cc index 21f05158e8b..9924968ea88 100644 --- a/source/blender/modifiers/intern/MOD_boolean.cc +++ b/source/blender/modifiers/intern/MOD_boolean.cc @@ -62,6 +62,7 @@ #endif using blender::Array; +using blender::float3; using blender::float4x4; using blender::IndexRange; using blender::MutableSpan; @@ -142,9 +143,9 @@ static Mesh *get_quick_mesh( invert_m4_m4(imat, ob_self->object_to_world); mul_m4_m4m4(omat, imat, ob_operand_ob->object_to_world); - MutableSpan<MVert> verts = result->verts_for_write(); - for (const int i : verts.index_range()) { - mul_m4_v3(omat, verts[i].co); + MutableSpan<float3> positions = result->positions_for_write(); + for (const int i : positions.index_range()) { + mul_m4_v3(omat, positions[i]); } BKE_mesh_tag_coords_changed(result); |