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:
marauder2k7 2025-11-24 07:53:06 +00:00
parent aa9a8154e1
commit a5ed09fa57
5 changed files with 100 additions and 207 deletions

View file

@ -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