Ver código fonte

Merge pull request #3826 from krishty/fix-3ds-matrix

reverted regression in 3DS transformation (issue #3802)
Kim Kulling 4 anos atrás
pai
commit
b516d940b6
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      code/AssetLib/3DS/3DSLoader.cpp

+ 3 - 3
code/AssetLib/3DS/3DSLoader.cpp

@@ -981,9 +981,9 @@ void Discreet3DSImporter::ParseMeshChunk() {
         mMesh.mMat.a3 = stream->GetF4();
         mMesh.mMat.a3 = stream->GetF4();
         mMesh.mMat.b3 = stream->GetF4();
         mMesh.mMat.b3 = stream->GetF4();
         mMesh.mMat.c3 = stream->GetF4();
         mMesh.mMat.c3 = stream->GetF4();
-        mMesh.mMat.d1 = stream->GetF4();
-        mMesh.mMat.d2 = stream->GetF4();
-        mMesh.mMat.d3 = stream->GetF4();
+        mMesh.mMat.a4 = stream->GetF4();
+        mMesh.mMat.b4 = stream->GetF4();
+        mMesh.mMat.c4 = stream->GetF4();
     } break;
     } break;
 
 
     case Discreet3DS::CHUNK_MAPLIST: {
     case Discreet3DS::CHUNK_MAPLIST: {