From 1ecf0e3b9d3f4b019163cd3ba95254477c8205da Mon Sep 17 00:00:00 2001 From: Atlante45 Date: Mon, 5 May 2014 11:43:58 -0700 Subject: [PATCH] Used wrong formula in previous commit --- examples/editVoxels.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/editVoxels.js b/examples/editVoxels.js index 8e85341e83..b9f5d925d9 100644 --- a/examples/editVoxels.js +++ b/examples/editVoxels.js @@ -331,7 +331,7 @@ function ScaleSelector() { }); this.setScale = function(scale) { this.scale = scale; - this.power = Math.ceil(Math.log(scale) * Math.LOG2E); + this.power = Math.floor(Math.log(scale) / Math.log(2)); rescaleImport(); this.update(); }