Skip to content

Commit 07a6ca9

Browse files
committed
* Fix "particlesPerSecond set to 0 accumulates timeDiff" issue
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9713 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
1 parent 6aefda2 commit 07a6ca9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

engine/src/core/com/jme3/effect/ParticleEmitter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,8 +718,9 @@ public float getParticlesPerSec() {
718718
*/
719719
public void setParticlesPerSec(float particlesPerSec) {
720720
this.particlesPerSec = particlesPerSec;
721+
timeDifference = 0;
721722
}
722-
723+
723724
/**
724725
* Get the start color of the particles spawned.
725726
*

0 commit comments

Comments
 (0)