From 07a6ca931fcb5a8ae1797507e8ea79cbe57709e3 Mon Sep 17 00:00:00 2001 From: "Sha..rd" Date: Mon, 10 Sep 2012 23:18:40 +0000 Subject: [PATCH] * Fix "particlesPerSecond set to 0 accumulates timeDiff" issue git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9713 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/effect/ParticleEmitter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/src/core/com/jme3/effect/ParticleEmitter.java b/engine/src/core/com/jme3/effect/ParticleEmitter.java index c00e66eed..871a916f6 100644 --- a/engine/src/core/com/jme3/effect/ParticleEmitter.java +++ b/engine/src/core/com/jme3/effect/ParticleEmitter.java @@ -718,8 +718,9 @@ public class ParticleEmitter extends Geometry { */ public void setParticlesPerSec(float particlesPerSec) { this.particlesPerSec = particlesPerSec; + timeDifference = 0; } - + /** * Get the start color of the particles spawned. *