Przeglądaj źródła

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

Revert "reset release memory"
Loïc Baumann 8 lat temu
rodzic
commit
89dc960910
1 zmienionych plików z 1 dodań i 4 usunięć
  1. 1 4
      src/Tools/babylon.smartArray.ts

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

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