diff options
Diffstat (limited to 'source/blender/editors/mesh/editface.cc')
-rw-r--r-- | source/blender/editors/mesh/editface.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/editface.cc b/source/blender/editors/mesh/editface.cc index 1c6d1747516..6451c6e2bf9 100644 --- a/source/blender/editors/mesh/editface.cc +++ b/source/blender/editors/mesh/editface.cc @@ -385,7 +385,7 @@ bool paintface_minmax(Object *ob, float r_min[3], float r_max[3]) copy_m3_m4(bmat, ob->object_to_world); - const Span<MVert> verts = me->verts(); + const Span<float3> positions = me->positions(); const Span<MPoly> polys = me->polys(); const Span<MLoop> loops = me->loops(); bke::AttributeAccessor attributes = me->attributes(); @@ -402,7 +402,7 @@ bool paintface_minmax(Object *ob, float r_min[3], float r_max[3]) const MPoly &poly = polys[i]; const MLoop *ml = &loops[poly.loopstart]; for (int b = 0; b < poly.totloop; b++, ml++) { - mul_v3_m3v3(vec, bmat, verts[ml->v].co); + mul_v3_m3v3(vec, bmat, positions[ml->v]); add_v3_v3v3(vec, vec, ob->object_to_world[3]); minmax_v3v3_v3(r_min, r_max, vec); } |