mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +00:00
Adds a format scale multiplier for shape formats that use a default unit other than meters.
This commit is contained in:
parent
340adae967
commit
76550a5859
6 changed files with 38 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue