瀏覽代碼

Merge pull request #1887 from BabylonJS/revert-1886-master

Revert "reset release memory"
Loïc Baumann 8 年之前
父節點
當前提交
89dc960910
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      src/Tools/babylon.smartArray.ts

+ 1 - 4
src/Tools/babylon.smartArray.ts

@@ -44,9 +44,6 @@
         }
 
         public reset(): void {
-            for (var index = 0; index < this.data.length; index++) {
-                this.data[index] = null;
-            }
             this.length = 0;
             this._duplicateId++;
         }
@@ -91,4 +88,4 @@
         // Statics
         private static _GlobalId = 0;
     }
-} 
+}