mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-22 16:13:45 +00:00
fix assimp import
Assimp importer now sets the collada options to fix up axis transformation bounds are now created by tsmesh top level nodes are now added to the processNodes stack so bounds and other root nodes can be found correctly
This commit is contained in:
parent
aa9a8154e1
commit
a5ed09fa57
5 changed files with 100 additions and 207 deletions
|
|
@ -84,6 +84,8 @@ MatrixF AssimpAppNode::getTransform(F32 time)
|
|||
// no parent (ie. root level) => scale by global shape <unit>
|
||||
mLastTransform.identity();
|
||||
mLastTransform.scale(ColladaUtils::getOptions().unit * ColladaUtils::getOptions().formatScaleFactor);
|
||||
if (!isBounds())
|
||||
ColladaUtils::convertTransform(mLastTransform);
|
||||
}
|
||||
|
||||
// If this node is animated in the active sequence, fetch the animated transform
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue