Fix set but unused variable in mesh intersect

A bit tricky, since there is also variable shadowing involved.
This commit is contained in:
Sergey Sharybin 2023-04-18 11:25:05 +02:00 committed by Sergey Sharybin
parent 9e63c3cee8
commit 3c34b13cf8
1 changed files with 0 additions and 2 deletions

View File

@ -3120,7 +3120,6 @@ void write_obj_mesh(IMesh &m, const std::string &objname)
const double3 dv = v->co;
f << "v " << dv[0] << " " << dv[1] << " " << dv[2] << "\n";
}
int i = 0;
for (const Face *face : m.faces()) {
/* OBJ files use 1-indexing for vertices. */
f << "f ";
@ -3131,7 +3130,6 @@ void write_obj_mesh(IMesh &m, const std::string &objname)
f << i + 1 << " ";
}
f << "\n";
++i;
}
f.close();
}