2
0
Эх сурвалжийг харах

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
rem..om 13 жил өмнө
parent
commit
cf93c2c6fc

+ 1 - 0
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;
     }