forked from bartvdbraak/blender
fix for own error in recent solitify refactor (r57402), face flip check was incorrect.
This commit is contained in:
parent
aa8f621dd9
commit
9161a4daa5
@ -333,3 +333,5 @@ const char *clErrorString(cl_int error)
|
|||||||
|
|
||||||
CCL_NAMESPACE_END
|
CCL_NAMESPACE_END
|
||||||
|
|
||||||
|
#ifdef CLCC_DYNLIB_CLOSE
|
||||||
|
#endif
|
||||||
|
@ -310,22 +310,19 @@ static DerivedMesh *applyModifier(
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0, mp = orig_mpoly; i < numFaces; i++, mp++) {
|
for (i = 0, mp = orig_mpoly; i < numFaces; i++, mp++) {
|
||||||
unsigned int ml_v1;
|
|
||||||
unsigned int ml_v2;
|
|
||||||
int j;
|
int j;
|
||||||
|
|
||||||
ml = orig_mloop + mp->loopstart;
|
ml = orig_mloop + mp->loopstart;
|
||||||
|
|
||||||
for (j = 0, ml_v2 = ml[mp->totloop - 1].v;
|
for (j = 0; j < mp->totloop; j++, ml++) {
|
||||||
j < mp->totloop;
|
|
||||||
j++, ml++, ml_v2 = ml_v1)
|
|
||||||
{
|
|
||||||
ml_v1 = ml->v;
|
|
||||||
/* add edge user */
|
/* add edge user */
|
||||||
eidx = ml->e;
|
eidx = ml->e;
|
||||||
if (edge_users[eidx] == INVALID_UNUSED) {
|
if (edge_users[eidx] == INVALID_UNUSED) {
|
||||||
|
unsigned int ml_v_next = (j + 1 != mp->totloop) ? ml[1].v : ml[-j].v;
|
||||||
ed = orig_medge + eidx;
|
ed = orig_medge + eidx;
|
||||||
edge_users[eidx] = (ml_v1 < ml_v2) == (ed->v1 < ed->v2) ? i : (i + numFaces);
|
BLI_assert(ELEM(ml->v, ed->v1, ed->v2) &&
|
||||||
|
ELEM(ml_v_next, ed->v1, ed->v2));
|
||||||
|
edge_users[eidx] = (ml->v > ml_v_next) == (ed->v1 < ed->v2) ? i : (i + numFaces);
|
||||||
edge_order[eidx] = j;
|
edge_order[eidx] = j;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user