Fixed issue when the last waypoint of a motion path was not triggering listeners

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

@ -284,6 +284,7 @@ public class MotionTrack extends AbstractCinematicEvent implements Control {
@Override
public void onStop() {
setCurrentWayPoint(path.getNbWayPoints()-1);
currentWayPoint = 0;
}

Loading…
Cancel
Save