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:
parent
7f6ce84ffd
commit
cf93c2c6fc
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user