Added "inclusive" parameter to getPreviousKeyframe() and getNextKeyframe() in KeyframeList to define whether the next/previous keyframe may have the same timestamp as the realTime parameter
Fixed a bug in KeyframeList#getPositionOnPath where a non-inclusive getPreviousKeyframe call resulted in an incorrect position value
This commit is contained in:
@@ -539,7 +539,7 @@ public class ReplayHandler {
|
||||
//if shift is down, it will refer to the previous Time Keyframe instead of the last one
|
||||
if(shiftMode) {
|
||||
int realTime = getRealTimelineCursor();
|
||||
keyframe = timeKeyframes.getPreviousKeyframe(realTime);
|
||||
keyframe = timeKeyframes.getPreviousKeyframe(realTime, false);
|
||||
} else {
|
||||
keyframe = timeKeyframes.last();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user