From eff89cef196c0a512e5e76a91bebf0740ed3ad37 Mon Sep 17 00:00:00 2001 From: giry Date: Tue, 31 Jul 2012 12:52:06 +0300 Subject: [PATCH] Update src/extra/glge_particles.js --- src/extra/glge_particles.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extra/glge_particles.js b/src/extra/glge_particles.js index 4d25668..94b823f 100644 --- a/src/extra/glge_particles.js +++ b/src/extra/glge_particles.js @@ -573,7 +573,7 @@ GLGE.ParticleSystem.prototype.setAccelerationFunction=function(func){ * @param {function} func the new function */ GLGE.ParticleSystem.prototype.setPositionFunction=function(func){ - this.colorFunction=func; + this.positionFunction=func; this.particles=null; } /** @@ -581,7 +581,7 @@ GLGE.ParticleSystem.prototype.setPositionFunction=function(func){ * @param {function} func the new function */ GLGE.ParticleSystem.prototype.setColorFunction=function(func){ - this.positionFunction=func; + this.colorFunction=func; this.particles=null; } /**