Переглянути джерело

Merge pull request #939 from jbousquie/fix.SPS.ReturnedShapeId

fix : returned shapeId by addShape()
Raanan Weber 9 роки тому
батько
коміт
49b75d1120
1 змінених файлів з 1 додано та 2 видалено
  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._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
@@ -746,4 +746,3 @@ module BABYLON {
         }
     }
 }
-