From 9add2afec11a57b47a9623a908430476af61cb28 Mon Sep 17 00:00:00 2001 From: johni0702 Date: Sat, 12 Nov 2016 17:31:29 +0100 Subject: [PATCH] Deselect keyframe when pressing "V" aka. sync timelines (fixes #27) --- src/main/java/com/replaymod/simplepathing/gui/GuiPathing.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/replaymod/simplepathing/gui/GuiPathing.java b/src/main/java/com/replaymod/simplepathing/gui/GuiPathing.java index c1a4e69b..3f1bb6b1 100644 --- a/src/main/java/com/replaymod/simplepathing/gui/GuiPathing.java +++ b/src/main/java/com/replaymod/simplepathing/gui/GuiPathing.java @@ -452,6 +452,8 @@ public class GuiPathing { int cursorPassed = (int) (timePassed / speed); // Move cursor to new position timeline.setCursorPosition(keyframeCursor + cursorPassed); + // Deselect keyframe to allow the user to add a new one right away + mod.setSelectedKeyframe(null); }); });