Skip to content

Commit aefe5d6

Browse files
committed
fix first frame of animations being wonky
1 parent 6d52129 commit aefe5d6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Robust.Client/Animations/AnimationTrackProperty.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ public override (int KeyFrameIndex, float FramePlayingTime) AdvancePlayback(obje
4343
var nextKeyFrame = keyFrameIndex + 1;
4444
if (nextKeyFrame == 0)
4545
{
46-
// Still before the first keyframe, do nothing.
46+
// At the start snap the anim to the first keyframe
47+
value = KeyFrames[0].Value;
48+
ApplyProperty(context, value);
4749
return (keyFrameIndex, playingTime);
4850
}
4951

0 commit comments

Comments
 (0)