Skip to content

Commit

Permalink
Fix for m_MuscleClipSize
Browse files Browse the repository at this point in the history
  • Loading branch information
aelurum committed Feb 10, 2025
1 parent 185348d commit 6ea1ff3
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions AssetStudio/Classes/AnimationClip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1168,17 +1168,15 @@ public AnimationClip(ObjectReader reader) : base(reader)
if (version >= 4)//4.0 and up
{
m_MuscleClipSize = reader.ReadUInt32();
if (m_MuscleClipSize > 0)
if (!version.IsTuanjie)
{
if (version.IsTuanjie)
{
_ = reader.ReadUInt32();
}
m_MuscleClip = new ClipMuscleConstant(reader);
}
else if (m_MuscleClipSize > 0)
{
_ = reader.ReadInt32();
m_MuscleClip = new ClipMuscleConstant(reader); //m_AnimData (Tuanjie)
if (version.IsTuanjie)
{
m_StreamingInfo = new StreamingInfo(reader);
}
m_StreamingInfo = new StreamingInfo(reader);
}
}
if (version >= (4, 3)) //4.3 and up
Expand Down

0 comments on commit 6ea1ff3

Please sign in to comment.