Skip to content

Commit

Permalink
FIX reader = null on MeshSetToFbx
Browse files Browse the repository at this point in the history
  • Loading branch information
paulov-t committed May 15, 2023
1 parent f97ba93 commit ef547a3
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions Libraries/FrostySdk/Frostbite/IO/Output/MeshSetToFbxExport.cs
Expand Up @@ -220,8 +220,11 @@ private void FBXCreateMesh(FbxScene scene, MeshSetLod lod, List<FbxNode> boneNod

}

if (reader == null)
continue;

reader.Position = 0;
var debugMeshesChunkDataPath = "MeshesChunkData_" + ProfileManager.ProfileName + ".dat";
var debugMeshesChunkDataPath = "_MeshesChunkData_" + ProfileManager.ProfileName + ".dat";
if (File.Exists(debugMeshesChunkDataPath))
File.Delete(debugMeshesChunkDataPath);

Expand Down Expand Up @@ -417,14 +420,7 @@ private void FBXCreateSkin(FbxScene scene, MeshSetSection section, FbxNode actor
if (boneWeight[l] > 0f)
{
int indIndex = boneIndicy[l];
// This is a hack, just for hair caps in FIFA 23
//if (boneList.Count - 1 < indIndex)
//{
// // This is a hack
// //boneWeight[0] = 1f;
// //boneWeight[l] = 0f;
// continue;
//}

indIndex = boneList[indIndex];
if (((uint)indIndex & 0x8000u) != 0)
{
Expand Down

0 comments on commit ef547a3

Please sign in to comment.