Gregg Tavares преди 6 години
родител
ревизия
7e2c478576
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  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);
-    for (const model of Object.values(models)) {
+    Object.value(models).forEach((model) => {
       gltfLoader.load(model.url, (gltf) => {
         model.gltf = gltf;
       });
-    }
+    });
   }
 
   function prepModelsAndAnimations() {