* Fix "particlesPerSecond set to 0 accumulates timeDiff" issue
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9713 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
6aefda2e38
commit
07a6ca931f
@ -718,8 +718,9 @@ public class ParticleEmitter extends Geometry {
|
|||||||
*/
|
*/
|
||||||
public void setParticlesPerSec(float particlesPerSec) {
|
public void setParticlesPerSec(float particlesPerSec) {
|
||||||
this.particlesPerSec = particlesPerSec;
|
this.particlesPerSec = particlesPerSec;
|
||||||
|
timeDifference = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the start color of the particles spawned.
|
* Get the start color of the particles spawned.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user