Browse Source

revert test

Gregg Tavares 6 years ago
parent
commit
db4433ba1f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      threejs/threejs-game-load-models.html

+ 2 - 2
threejs/threejs-game-load-models.html

@@ -130,11 +130,11 @@ function main() {
   };
   {
     const gltfLoader = new THREE.GLTFLoader(manager);
-    Object.values(models).forEach((model) => {
+    for (const model of Object.values(models)) {
       gltfLoader.load(model.url, (gltf) => {
         model.gltf = gltf;
       });
-    });
+    }
   }
 
   function prepModelsAndAnimations() {