Deselect keyframe when left clicking empty space on timeline (fixes #6)

This commit is contained in:
johni0702
2016-09-18 13:20:28 +02:00
parent ad62060368
commit ada460c384

View File

@@ -208,6 +208,7 @@ public class GuiKeyframeTimeline extends AbstractGuiTimeline<GuiKeyframeTimeline
// Clicked on timeline but not on any keyframe
if (button == 0) { // Left click
setCursorPosition(time);
gui.getMod().setSelectedKeyframe(null);
} else if (button == 1) { // Right click
if (pathKeyframePair.getLeft() != null) {
// Apply the value of the clicked path at the clicked position