Fixed a timing issue in MotionTrack when used as a control

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8533 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
rem..om 13 years ago
parent 2a0c4ed10f
commit 64bc0298b2
  1. 2
      engine/src/core/com/jme3/cinematic/events/MotionTrack.java

@ -160,7 +160,7 @@ public class MotionTrack extends AbstractCinematicEvent implements Control {
if (isControl) {
if (playState == PlayState.Playing) {
time = (elapsedTimePause + timer.getTimeInSeconds()) * speed;
time = (elapsedTimePause + timer.getTimeInSeconds() - start) * speed;
onUpdate(tpf);
if (time >= initialDuration && loopMode == loopMode.DontLoop) {
stop();

Loading…
Cancel
Save