소스 검색

Added the "vars" property in order to store user SPS scoped variables (GC concerns)

jbousquie 9 년 전
부모
커밋
b82b762951
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/Particles/babylon.solidParticleSystem.ts

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

@@ -8,6 +8,7 @@ module BABYLON {
         public counter: number = 0;
         public name: string;
         public mesh: Mesh;
+        public vars: any = {};
         
         // private members
         private _scene: Scene;
@@ -480,6 +481,7 @@ module BABYLON {
         // dispose the SPS
         public dispose(): void {
             this.mesh.dispose();
+            this.vars = null;
             // drop references to internal big arrays for the GC
             this._positions = null;
             this._indices = null;