can modify the rotation of the model when exporting.

pull/3696/head
jaefunk 2021-03-15 10:23:17 +09:00 committed by ethan
parent 37c2d33cc9
commit a812fd1a0a
1 changed files with 2 additions and 2 deletions

View File

@ -327,8 +327,8 @@ bool ExportModel(const aiScene* pOut,
aiMatrix4x4 rx, ry, rz;
aiMatrix4x4::RotationX(imp.rot.x, rx);
aiMatrix4x4::RotationX(imp.rot.y, ry);
aiMatrix4x4::RotationX(imp.rot.z, rz);
aiMatrix4x4::RotationY(imp.rot.y, ry);
aiMatrix4x4::RotationZ(imp.rot.z, rz);
pOut->mRootNode->mTransformation *= rx;
pOut->mRootNode->mTransformation *= ry;
pOut->mRootNode->mTransformation *= rz;