浏览代码

Fix edge case (fixes #1214).

pull/1238/head
Matthew Petroff 6 个月前
父节点
当前提交
1c7e9f6f71
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      utils/multires/generate.py

+ 1
- 1
utils/multires/generate.py 查看文件

@@ -197,7 +197,7 @@ else:
cubeSize = 8 * int((360 / haov) * origWidth / math.pi / 8)
tileSize = min(args.tileSize, cubeSize)
levels = int(math.ceil(math.log(float(cubeSize) / tileSize, 2))) + 1
if round(cubeSize / 2**(levels - 2)) == tileSize:
if int(cubeSize / 2**(levels - 2)) == tileSize:
levels -= 1 # Handle edge case
origHeight = str(origHeight)
origWidth = str(origWidth)


正在加载...
取消
保存