Skip to content

Commit

Permalink
UI: workaround for SPE issue #49 allowing < 1 particles per sec
Browse files Browse the repository at this point in the history
  • Loading branch information
movitto committed May 23, 2014
1 parent d44b56b commit 5e7ed4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/source/javascripts/vendor/ShaderParticles.js
Original file line number Diff line number Diff line change
Expand Up @@ -541,10 +541,10 @@ SPE.Group.prototype = {
var that = this;

if( emitter.duration ) {
emitter.particlesPerSecond = emitter.particleCount / (that.maxAge < emitter.duration ? that.maxAge : emitter.duration) | 0;
emitter.particlesPerSecond = emitter.particleCount / (that.maxAge < emitter.duration ? that.maxAge : emitter.duration) || 0;
}
else {
emitter.particlesPerSecond = emitter.particleCount / that.maxAge | 0
emitter.particlesPerSecond = emitter.particleCount / that.maxAge || 0
}

var vertices = that.geometry.vertices,
Expand Down

0 comments on commit 5e7ed4d

Please # to comment.