Only allow a single keyframe to be selected

Fix crash when adding keyframe exactly on top of another
This commit is contained in:
johni0702
2016-09-02 13:45:40 +02:00
parent cd1a53531b
commit 50ba370c1c
4 changed files with 32 additions and 40 deletions

View File

@@ -230,7 +230,7 @@ public class PathPreviewRenderer {
float posY = 0f;
float size = 10f / ReplayMod.TEXTURE_SIZE;
if (keyframe == mod.getSelectedPositionKeyframe()) {
if (keyframe == mod.getSelectedKeyframe()) {
posY += size;
}