Source/RunActivity/Viewer3D/Shapes.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/RunActivity/Viewer3D/Shapes.cs b/Source/RunActivity/Viewer3D/Shapes.cs index e70ce2185..8c03682f7 100644 --- a/Source/RunActivity/Viewer3D/Shapes.cs +++ b/Source/RunActivity/Viewer3D/Shapes.cs @@ -1084,7 +1084,7 @@ public override void PrepareFrame(RenderFrame frame, ElapsedTime elapsedTime) { AnimationKey -= SharedShape.Animations[0].FrameRate * elapsedTime.ClockSeconds; } - while (AnimationKey > SharedShape.Animations[0].FrameCount) AnimationKey -= SharedShape.Animations[0].FrameCount; + while (AnimationKey > SharedShape.Animations[0].FrameCount + (Turntable.GoToAutoTarget? 1 : 0)) AnimationKey -= SharedShape.Animations[0].FrameCount; while (AnimationKey < 0) AnimationKey += SharedShape.Animations[0].FrameCount; Turntable.YAngle = MathHelper.WrapAngle(AnimationKey / 1800.0f * (float)Math.PI);