diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2021-11-16 22:25:11 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2021-11-26 16:32:49 +0300 |
commit | a773cd3850ee542f0bc919e67d1ec04221ec95a5 (patch) | |
tree | 9f20da251d333812a6b185d7aa399f636dd9f642 /source | |
parent | 35c3644e78d37c2413f6a239348fb5ff7d59a647 (diff) |
Fix T93130: Frame Selected with selected paint mask does not work
This broke with {rB20fac2eca723} (which landed in 2.63), so long
standing bug.
Convention for paint modes is:
- when no paint mask is active, `Frame Selected` will focus the last
stroke
- when paint mask is active, `Frame Selected` will focus the selected
mask faces
To check the right vert coords we have to offset with `mp->loopstart`.
Maniphest Tasks: T93130
Differential Revision: https://developer.blender.org/D13247
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/mesh/editface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editface.c b/source/blender/editors/mesh/editface.c index 648008a4779..6cdc622183f 100644 --- a/source/blender/editors/mesh/editface.c +++ b/source/blender/editors/mesh/editface.c @@ -369,7 +369,7 @@ bool paintface_minmax(Object *ob, float r_min[3], float r_max[3]) continue; } - ml = me->mloop + mp->totloop; + ml = me->mloop + mp->loopstart; for (b = 0; b < mp->totloop; b++, ml++) { mul_v3_m3v3(vec, bmat, mvert[ml->v].co); add_v3_v3v3(vec, vec, ob->obmat[3]); |