From bf2e71e39b466f011d99b51d8360d58813a19b44 Mon Sep 17 00:00:00 2001 From: yugecin Date: Sun, 25 Dec 2016 12:35:33 +0100 Subject: [PATCH] fix wrong length calculation when adding first mover --- src/yugecin/opsudance/sbv2/StoryboardMoveImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/yugecin/opsudance/sbv2/StoryboardMoveImpl.java b/src/yugecin/opsudance/sbv2/StoryboardMoveImpl.java index a8613327..7b064f5c 100644 --- a/src/yugecin/opsudance/sbv2/StoryboardMoveImpl.java +++ b/src/yugecin/opsudance/sbv2/StoryboardMoveImpl.java @@ -18,6 +18,7 @@ package yugecin.opsudance.sbv2; import itdelatrisu.opsu.objects.curves.Vec2f; +import itdelatrisu.opsu.ui.Fonts; import org.newdawn.slick.Color; import org.newdawn.slick.Graphics; import yugecin.opsudance.sbv2.movers.StoryboardMover; @@ -52,6 +53,8 @@ public class StoryboardMoveImpl implements StoryboardMove { mover.end = end; if (movers.size() == 0) { mover.start = start; + mover.recalculateLength(); + totalLength += mover.getLength(); } else { StoryboardMover lastMover = movers.get(movers.size() - 1); Vec2f mid = new Vec2f(