Fix T52639: Weight paint smooth tool crash

This commit is contained in:
2017-09-07 13:20:39 +10:00
parent c3322603eb
commit 5f7de54243

View File

@@ -1798,10 +1798,11 @@ static void vgroup_smooth_subset(
}
else {
for (int i = 0; i < dvert_tot; i++) {
MVert *v = &me->mvert[i];
const MVert *v = &me->mvert[i];
if (v->flag & SELECT) {
for (int j = 0; j < emap[i].count; j++) {
MVert *v_other = &me->mvert[emap[i].indices[j]];
const MEdge *e = &me->medge[emap[i].indices[j]];
const MVert *v_other = &me->mvert[(e->v1 == i) ? e->v2 : e->v1];
if ((source == WEIGHT_SMOOTH_ALL) ||
(source == ((v_other->flag & SELECT) != 0)))
{