瀏覽代碼

rename resetParticle() to rebuildParticle()

jbousquie 9 年之前
父節點
當前提交
53f987abbb
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Particles/babylon.solidParticleSystem.ts

+ 2 - 2
src/Particles/babylon.solidParticleSystem.ts

@@ -239,8 +239,8 @@ module BABYLON {
             return this._shapeCounter;
             return this._shapeCounter;
         }
         }
 
 
-        // resets a particle back to its just built status : if needed, recomputes the custom positions and vertices
-        public resetParticle(particle: SolidParticle): void {
+        // rebuilds a particle back to its just built status : if needed, recomputes the custom positions and vertices
+        public rebuildParticle(particle: SolidParticle): void {
             this._resetCopy();
             this._resetCopy();
             if (particle._model._positionFunction) {        // recall to stored custom positionFunction
             if (particle._model._positionFunction) {        // recall to stored custom positionFunction
                 particle._model._positionFunction(this._copy, particle.idx, particle.idxInShape);
                 particle._model._positionFunction(this._copy, particle.idx, particle.idxInShape);