Skip to content

Commit

Permalink
Quick hackfix to ensure new 7.1 face models don't trigger old broken …
Browse files Browse the repository at this point in the history
…mod model fixes. May need further review/testing with really old models
  • Loading branch information
Lunaretic committed Nov 12, 2024
1 parent cf875b4 commit e7c7c6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xivModdingFramework/Models/FileTypes/Mdl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,8 @@ public static XivMdl GetXivMdl(byte[] mdlData, string mdlPath = "")
}
else {
if (xivMdl.LoDList[0].VertexDataOffset < br.BaseStream.Position
|| (xivMdl.LoDList[0].VertexDataOffset % 8 != br.BaseStream.Position % 8))
|| (xivMdl.LoDList[0].VertexDataOffset % 8 != br.BaseStream.Position % 8)
&& xivMdl.LoDList[1].VertexDataSize == 0)
{

var delta = (int)(xivMdl.LoDList[0].VertexDataOffset - br.BaseStream.Position);
Expand Down

0 comments on commit e7c7c6a

Please sign in to comment.