Skip to content

Commit

Permalink
Fix Animation wrong jointIndices size
Browse files Browse the repository at this point in the history
  • Loading branch information
xoascf committed Sep 28, 2023
1 parent c170487 commit 9658ce9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OTRMod/Z/Animation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private static byte[] GetAnimationData(AnimationHeader header) {
bytes.AddRange(ByteArray.FromI16(header.frameCount, false));
bytes.AddRange(ByteArray.FromI32(header.frameData.Length / 2, false));
bytes.AddRange(Misc.SwapByteArray(header.frameData));
bytes.AddRange(new byte[] { 0x2F, 0x00, 0x00, 0x00 }); // Separator??
bytes.AddRange(ByteArray.FromI32(header.jointIndices.Length / 6, false));
bytes.AddRange(Misc.SwapByteArray(header.jointIndices));
bytes.AddRange(ByteArray.FromU16(header.indexMax, false));

Expand Down

0 comments on commit 9658ce9

Please sign in to comment.