Skip to content

Commit 514b44f

Browse files
committed
Fix bone vis animations clamping when over 1024 frames
1 parent f203050 commit 514b44f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Plugins/CafeLibrary/Bfres/Editing/AnimConversion/BoneVisAnimConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ static AnimCurve ConvertCurve(BfresAnimationTrack track, int index)
8484
//Get max frame value
8585
float frame = track.KeyFrames.Max(x => x.Frame);
8686
if (frame < byte.MaxValue) animCurve.FrameType = AnimCurveFrameType.Byte;
87-
else if (frame < ushort.MaxValue) animCurve.FrameType = AnimCurveFrameType.Decimal10x5;
87+
else if (frame < 1023) animCurve.FrameType = AnimCurveFrameType.Decimal10x5;
8888

8989
return animCurve;
9090
}

0 commit comments

Comments
 (0)