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
This commit is contained in:
rem..om 2012-03-23 10:50:36 +00:00
parent 7f6ce84ffd
commit cf93c2c6fc

View File

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