Procházet zdrojové kódy

Update FBXConverter.cpp

- Temporary fix bind pose storage in offset matrix
- Will close https://github.com/assimp/assimp/issues/5132
Kim Kulling před 1 rokem
rodič
revize
384db8686e
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      code/AssetLib/FBX/FBXConverter.cpp

+ 3 - 3
code/AssetLib/FBX/FBXConverter.cpp

@@ -1621,16 +1621,16 @@ void FBXConverter::ConvertCluster(std::vector<aiBone*> &local_mesh_bones, const
         bone = new aiBone();
         bone = new aiBone();
         bone->mName = bone_name;
         bone->mName = bone_name;
 
 
-        bone->mOffsetMatrix = cluster->Transform();
+        //bone->mOffsetMatrix = cluster->Transform();
         // store local transform link for post processing
         // store local transform link for post processing
-        /*
+        
         bone->mOffsetMatrix = cluster->TransformLink();
         bone->mOffsetMatrix = cluster->TransformLink();
         bone->mOffsetMatrix.Inverse();
         bone->mOffsetMatrix.Inverse();
 
 
         aiMatrix4x4 matrix = (aiMatrix4x4)absolute_transform;
         aiMatrix4x4 matrix = (aiMatrix4x4)absolute_transform;
 
 
         bone->mOffsetMatrix = bone->mOffsetMatrix * matrix; // * mesh_offset
         bone->mOffsetMatrix = bone->mOffsetMatrix * matrix; // * mesh_offset
-        */
+        
         //
         //
         // Now calculate the aiVertexWeights
         // Now calculate the aiVertexWeights
         //
         //