Tiny codestyle cleanup.

This commit is contained in:
Relintai 2020-03-29 13:11:12 +02:00
parent 896540116f
commit 0649d435c6

View File

@ -533,7 +533,7 @@ public:
if (t.dirty) if (t.dirty)
continue; continue;
for (int j = 0; j < 3; ++j) for (int j = 0; j < 3; ++j) {
if (t.err[j] < threshold) { if (t.err[j] < threshold) {
int i0 = t.v[j]; int i0 = t.v[j];
Vertex &v0 = vertices[i0]; Vertex &v0 = vertices[i0];
@ -584,6 +584,7 @@ public:
v0.tcount = tcount; v0.tcount = tcount;
break; break;
} }
}
} }
if (deleted_triangles <= 0) if (deleted_triangles <= 0)
@ -601,7 +602,9 @@ public:
for (int k = 0; k < v0.tcount; ++k) { for (int k = 0; k < v0.tcount; ++k) {
Triangle &t = triangles[refs[v0.tstart + k].tid]; Triangle &t = triangles[refs[v0.tstart + k].tid];
if (t.deleted) continue;
if (t.deleted)
continue;
int s = refs[v0.tstart + k].tvertex; int s = refs[v0.tstart + k].tvertex;
int id1 = t.v[(s + 1) % 3]; int id1 = t.v[(s + 1) % 3];
@ -609,7 +612,6 @@ public:
if (id1 == i1 || id2 == i1) // delete ? if (id1 == i1 || id2 == i1) // delete ?
{ {
deleted[k] = 1; deleted[k] = 1;
continue; continue;
} }