From 54dc9c3cf118f5a034ed4da8e7a58695a030a3b7 Mon Sep 17 00:00:00 2001 From: strarsis Date: Mon, 27 Jun 2016 22:08:53 +0200 Subject: [PATCH] Fixes issue #178 Fixes https://github.com/mpetroff/pannellum/issues/178 --- utils/multires/generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/multires/generate.py b/utils/multires/generate.py index fd921f5..18af849 100755 --- a/utils/multires/generate.py +++ b/utils/multires/generate.py @@ -67,7 +67,7 @@ if float(origWidth) / origHeight != 2: if args.cubeSize != 0: cubeSize = args.cubeSize else: - cubeSize = 8 * int(origWidth / math.pi / 8) + cubeSize = 8 * (origWidth / math.pi / 8) levels = int(math.ceil(math.log(float(cubeSize) / args.tileSize, 2))) + 1 origHeight = str(origHeight) origWidth = str(origWidth)