Explorar o código

can modify the rotation of the model when exporting.

jaefunk %!s(int64=4) %!d(string=hai) anos
pai
achega
a812fd1a0a
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      tools/assimp_cmd/Main.cpp

+ 2 - 2
tools/assimp_cmd/Main.cpp

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