EffectTrack now correctly stops when loopMode is DontLoop

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9870 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
rem..om 12 years ago
parent d359091842
commit c84d25b755
  1. 3
      engine/src/core/com/jme3/animation/EffectTrack.java

@ -192,6 +192,9 @@ public class EffectTrack implements ClonableTrack {
*/
public void setTime(float time, float weight, AnimControl control, AnimChannel channel, TempVars vars) {
if (time == length) {
return;
}
//first time adding the Animation listener to stop the track at the end of the animation
if (!initialized) {
control.addListener(new OnEndListener());

Loading…
Cancel
Save