Quellcode durchsuchen

fix array iteration for compatibility with environnement where array prototype is modified

Vousk-prod vor 9 Jahren
Ursprung
Commit
57bdea12e6
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      src/Mesh/babylon.mesh.ts

+ 2 - 2
src/Mesh/babylon.mesh.ts

@@ -439,9 +439,9 @@
             if (!this._geometry) {
             if (!this._geometry) {
                 var result = [];
                 var result = [];
                 if (this._delayInfo) {
                 if (this._delayInfo) {
-                    for (var kind in this._delayInfo) {
+                    this._delayInfo.forEach( function(kind, index, array) {
                         result.push(kind);
                         result.push(kind);
-                    }
+                    });
                 }
                 }
                 return result;
                 return result;
             }
             }