Browse Source

Merge pull request #3724 from bekraft/3ds-import-fix

Fixing 3DS import for CHUNK_TRMATRIX translation vector.
Kim Kulling 4 years ago
parent
commit
b5d4e50895
1 changed files with 3 additions and 3 deletions
  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.a4 = stream->GetF4();
-        mMesh.mMat.b4 = stream->GetF4();
-        mMesh.mMat.c4 = stream->GetF4();
+        mMesh.mMat.d1 = stream->GetF4();
+        mMesh.mMat.d2 = stream->GetF4();
+        mMesh.mMat.d3 = stream->GetF4();
     } break;
     } break;
 
 
     case Discreet3DS::CHUNK_MAPLIST: {
     case Discreet3DS::CHUNK_MAPLIST: {