fix for regression since BMesh merge, selecting linked faces in face-mask mode was using an incorrect lookup on loops which made select-linked fail

This commit is contained in:
Campbell Barton
2013-02-28 03:39:41 +00:00
parent 15d443b7ea
commit d17c13d145

View File

@@ -182,10 +182,17 @@ void paintface_reveal(Object *ob)
static void hash_add_face(EdgeHash *ehash, MPoly *mp, MLoop *mloop)
{
MLoop *ml;
int i;
MLoop *ml_next;
int i = mp->totloop;
for (i = 0, ml = mloop; i < mp->totloop; i++, ml++) {
BLI_edgehash_insert(ehash, ml->v, ME_POLY_LOOP_NEXT(mloop, mp, i)->v, NULL);
ml_next = mloop;
ml = &mloop[mp->totloop - 1];
while (i-- != 0) {
BLI_edgehash_insert(ehash, ml->v, ml_next->v, NULL);
ml = ml_next;
ml_next++;
}
}