Adds a format scale multiplier for shape formats that use a default unit other than meters.

This commit is contained in:
OTHGMars 2020-03-22 02:25:12 -04:00
parent 340adae967
commit 76550a5859
6 changed files with 38 additions and 4 deletions

View file

@ -211,7 +211,7 @@ void AssimpAppMesh::lockMesh(F32 t, const MatrixF& objOffset)
bonePos /= scaleMult;
}
bonePos *= ColladaUtils::getOptions().unit;
bonePos *= ColladaUtils::getOptions().unit * ColladaUtils::getOptions().formatScaleFactor;
boneTransform.setPosition(bonePos);
initialTransforms.push_back(boneTransform);
@ -277,4 +277,4 @@ void AssimpAppMesh::lookupSkinData()
F32 AssimpAppMesh::getVisValue(F32 t)
{
return 1.0f;
}
}