Skip to content

Commit

Permalink
Rename constant
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlaltdavid committed Sep 2, 2020
1 parent 22e6ae9 commit 9fc9b20
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions libraries/fbx/src/GLTFSerializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1624,9 +1624,10 @@ bool GLTFSerializer::buildGeometry(HFMModel& hfmModel, const hifi::VariantHash&
}
}

// Mesh extents must be at least minimum entity size, in particular for blendshapes to work on planar meshes.
const float ENTITY_ITEM_MIN_DIMENSION = 0.001f;
auto delta = glm::max(glm::vec3(ENTITY_ITEM_MIN_DIMENSION) - mesh.meshExtents.size(), glm::vec3(0.0f)) / 2.0f;
// Mesh extents must be at least a minimum size, in particular for blendshapes to work on planar meshes.
const float MODEL_MIN_DIMENSION = 0.001f;
auto x = EPSILON;
auto delta = glm::max(glm::vec3(MODEL_MIN_DIMENSION) - mesh.meshExtents.size(), glm::vec3(0.0f)) / 2.0f;
mesh.meshExtents.minimum -= delta;
mesh.meshExtents.maximum += delta;
hfmModel.meshExtents.minimum -= delta;
Expand Down

0 comments on commit 9fc9b20

Please sign in to comment.