Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2021-11-16 22:25:11 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2022-01-17 17:44:42 +0300
commit678610031345457966fdacbea1b956c14ad3bba3 (patch)
treef4d987143e331c3f82a007a61e2188fc651aeae0
parent5d1efa9759c9050fb3f50102cec5a33836f6d225 (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
-rw-r--r--source/blender/editors/mesh/editface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editface.c b/source/blender/editors/mesh/editface.c
index b303c4c7e4e..215a1e5e929 100644
--- a/source/blender/editors/mesh/editface.c
+++ b/source/blender/editors/mesh/editface.c
@@ -370,7 +370,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]);