Procházet zdrojové kódy

break after mipmaps, not during

Ben Adams před 7 roky
rodič
revize
05d0c831bd
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 4 4
      src/Tools/babylon.dds.ts

+ 4 - 4
src/Tools/babylon.dds.ts

@@ -523,11 +523,11 @@
 
                     width = Math.max(1.0, width);
                     height = Math.max(1.0, height);
+                }
 
-                    if (currentFace) {
-                        // Loading a single face
-                        break;
-                    }
+                if (currentFace !== undefined) {
+                    // Loading a single face
+                    break;
                 }
             }
         }