Added recalculate() method to KeyframeList to recalc the underlying Interpolation

Recalculate Keyframe Lists in ReplayHandler upon firing a KeyframesModifyEvent
This commit is contained in:
CrushedPixel
2015-07-20 02:32:20 +02:00
parent 30f0a4d6a9
commit be77bb5a7b
4 changed files with 33 additions and 12 deletions

View File

@@ -579,6 +579,7 @@ public class ReplayHandler {
public static void fireKeyframesModifyEvent() {
FMLCommonHandler.instance().bus().post(new KeyframesModifyEvent(positionKeyframes, timeKeyframes));
positionKeyframes.recalculate(ReplayMod.replaySettings.isLinearMovement());
timeKeyframes.recalculate(ReplayMod.replaySettings.isLinearMovement());
}
}