From f7d6c30db37a55c237a36e87be947fe5bbff53a5 Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Mon, 8 Oct 2012 21:56:01 +0000 Subject: [PATCH] EffectTrack : fixed an issue when emitter wouldn't emit again once the animation was done and loopMode was set to DontLoop git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9858 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/animation/EffectTrack.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/engine/src/core/com/jme3/animation/EffectTrack.java b/engine/src/core/com/jme3/animation/EffectTrack.java index eb113ebcf..c99b67ee3 100644 --- a/engine/src/core/com/jme3/animation/EffectTrack.java +++ b/engine/src/core/com/jme3/animation/EffectTrack.java @@ -87,7 +87,7 @@ public class EffectTrack implements ClonableTrack { public KillParticleControl() { } - + @Override public void setSpatial(Spatial spatial) { super.setSpatial(spatial); @@ -104,7 +104,7 @@ public class EffectTrack implements ClonableTrack { @Override protected void controlUpdate(float tpf) { - if(remove){ + if (remove) { emitter.removeControl(this); return; } @@ -132,8 +132,6 @@ public class EffectTrack implements ClonableTrack { return c; } - - }; //Anim listener that stops the Emmitter when the animation is finished or changed. @@ -144,7 +142,6 @@ public class EffectTrack implements ClonableTrack { } public void onAnimChange(AnimControl control, AnimChannel channel, String animName) { - stop(); } }