Explorar o código

rename resetParticle() to rebuildParticle()

jbousquie %!s(int64=9) %!d(string=hai) anos
pai
achega
53f987abbb
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/Particles/babylon.solidParticleSystem.ts

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

@@ -239,8 +239,8 @@ module BABYLON {
             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();
             if (particle._model._positionFunction) {        // recall to stored custom positionFunction
                 particle._model._positionFunction(this._copy, particle.idx, particle.idxInShape);