EffectTrack now correctly stops when loopMode is DontLoop
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9870 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
d359091842
commit
c84d25b755
@ -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…
x
Reference in New Issue
Block a user