mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 16:55:07 +02:00
fix comment
This commit is contained in:
parent
d64729372a
commit
5d5dc2837b
1 changed files with 1 additions and 1 deletions
|
@ -1002,7 +1002,7 @@ void Model::scaleToFit() {
|
|||
Extents modelMeshExtents = getUnscaledMeshExtents();
|
||||
|
||||
// size is our "target size in world space"
|
||||
// we need to set our model scale so that the extents of the mesh, fit in a cube that size...
|
||||
// we need to set our model scale so that the extents of the mesh, fit in a box that size...
|
||||
glm::vec3 meshDimensions = modelMeshExtents.maximum - modelMeshExtents.minimum;
|
||||
glm::vec3 rescaleDimensions = _scaleToFitDimensions / meshDimensions;
|
||||
setScaleInternal(rescaleDimensions);
|
||||
|
|
Loading…
Reference in a new issue