Skip to content

Commit 6ea1ff3

Browse files
committed
Fix for m_MuscleClipSize
1 parent 185348d commit 6ea1ff3

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

AssetStudio/Classes/AnimationClip.cs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,17 +1168,15 @@ public AnimationClip(ObjectReader reader) : base(reader)
11681168
if (version >= 4)//4.0 and up
11691169
{
11701170
m_MuscleClipSize = reader.ReadUInt32();
1171-
if (m_MuscleClipSize > 0)
1171+
if (!version.IsTuanjie)
11721172
{
1173-
if (version.IsTuanjie)
1174-
{
1175-
_ = reader.ReadUInt32();
1176-
}
1173+
m_MuscleClip = new ClipMuscleConstant(reader);
1174+
}
1175+
else if (m_MuscleClipSize > 0)
1176+
{
1177+
_ = reader.ReadInt32();
11771178
m_MuscleClip = new ClipMuscleConstant(reader); //m_AnimData (Tuanjie)
1178-
if (version.IsTuanjie)
1179-
{
1180-
m_StreamingInfo = new StreamingInfo(reader);
1181-
}
1179+
m_StreamingInfo = new StreamingInfo(reader);
11821180
}
11831181
}
11841182
if (version >= (4, 3)) //4.3 and up

0 commit comments

Comments
 (0)