mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 15:09:34 +02:00
Rename constant
This commit is contained in:
parent
22e6ae9710
commit
9fc9b203ae
1 changed files with 4 additions and 3 deletions
|
@ -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.
|
// Mesh extents must be at least a minimum size, in particular for blendshapes to work on planar meshes.
|
||||||
const float ENTITY_ITEM_MIN_DIMENSION = 0.001f;
|
const float MODEL_MIN_DIMENSION = 0.001f;
|
||||||
auto delta = glm::max(glm::vec3(ENTITY_ITEM_MIN_DIMENSION) - mesh.meshExtents.size(), glm::vec3(0.0f)) / 2.0f;
|
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.minimum -= delta;
|
||||||
mesh.meshExtents.maximum += delta;
|
mesh.meshExtents.maximum += delta;
|
||||||
hfmModel.meshExtents.minimum -= delta;
|
hfmModel.meshExtents.minimum -= delta;
|
||||||
|
|
Loading…
Reference in a new issue