Skip to content

Commit

Permalink
not orienting uvs for surfaces mapped to spheres
Browse files Browse the repository at this point in the history
  • Loading branch information
rohan-sawhney committed Jun 21, 2023
1 parent 50db468 commit 6924b2f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mesh/MeshIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,9 @@ void MeshIO::packUvs(Model& model, double scaling,
{
if (model.size() > 1) {
for (int i = 0; i < model.size(); i++) {
model[i].orientUvsToMinimizeBoundingBox(6);
if (!isSurfaceMappedToSphere[i]) {
model[i].orientUvsToMinimizeBoundingBox(6);
}
}
}

Expand Down

0 comments on commit 6924b2f

Please sign in to comment.