瀏覽代碼

break after mipmaps, not during

Ben Adams 7 年之前
父節點
當前提交
05d0c831bd
共有 1 個文件被更改,包括 4 次插入4 次删除
  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;
                 }
             }
         }