Refactoring: Cleanup post-processing steps.
This commit is contained in:
@@ -86,9 +86,9 @@ void ScaleProcess::Execute( aiScene* pScene ) {
|
||||
return; // nothing to scale
|
||||
}
|
||||
|
||||
ai_assert( mScale != 0 );
|
||||
ai_assert( nullptr != pScene );
|
||||
ai_assert( nullptr != pScene->mRootNode );
|
||||
ai_assert(mScale != 0 );
|
||||
ai_assert(nullptr != pScene );
|
||||
ai_assert(nullptr != pScene->mRootNode );
|
||||
|
||||
if ( nullptr == pScene ) {
|
||||
return;
|
||||
@@ -140,7 +140,7 @@ void ScaleProcess::Execute( aiScene* pScene ) {
|
||||
aiMatrix4x4 scaling;
|
||||
aiMatrix4x4::Scaling( aiVector3D(scale), scaling );
|
||||
|
||||
aiMatrix4x4 RotMatrix = aiMatrix4x4 (rotation.GetMatrix());
|
||||
const aiMatrix4x4 RotMatrix = aiMatrix4x4(rotation.GetMatrix());
|
||||
|
||||
bone->mOffsetMatrix = translation * RotMatrix * scaling;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user