Explorar el Código

fix : returned shapeId by addShape()

jbousquie hace 9 años
padre
commit
c00aadfcd8
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      src/Particles/babylon.solidParticleSystem.ts

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

@@ -286,7 +286,7 @@ module BABYLON {
             }
             }
             this.nbParticles += nb;
             this.nbParticles += nb;
             this._shapeCounter++;
             this._shapeCounter++;
-            return this._shapeCounter;
+            return this._shapeCounter - 1;
         }
         }
 
 
         // rebuilds a particle back to its just built status : if needed, recomputes the custom positions and vertices
         // rebuilds a particle back to its just built status : if needed, recomputes the custom positions and vertices
@@ -746,4 +746,3 @@ module BABYLON {
         }
         }
     }
     }
 }
 }
-