mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-19 19:35:26 +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
|
|
@ -91,7 +91,7 @@ MatrixF AssimpAppNode::getTransform(F32 time)
|
|||
else {
|
||||
// no parent (ie. root level) => scale by global shape <unit>
|
||||
mLastTransform.identity();
|
||||
mLastTransform.scale(ColladaUtils::getOptions().unit);
|
||||
mLastTransform.scale(ColladaUtils::getOptions().unit * ColladaUtils::getOptions().formatScaleFactor);
|
||||
if (!isBounds())
|
||||
convertMat(mLastTransform);
|
||||
}
|
||||
|
|
@ -330,4 +330,4 @@ aiNode* AssimpAppNode::findChildNodeByName(const char* nodeName, aiNode* rootNod
|
|||
return retNode;
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue