From 178f845ad02ceaf0e2a36a068dc1e323e4ecda9d Mon Sep 17 00:00:00 2001 From: Atlante45 Date: Fri, 18 Apr 2014 16:40:13 -0700 Subject: [PATCH] Rescale import when using keys +/- --- examples/editVoxels.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/editVoxels.js b/examples/editVoxels.js index d9284a940d..12c571b09c 100644 --- a/examples/editVoxels.js +++ b/examples/editVoxels.js @@ -332,6 +332,7 @@ function ScaleSelector() { this.setScale = function(scale) { this.scale = scale; this.power = Math.floor(Math.log(scale)); + rescaleImport(); } this.show = function(doShow) { @@ -393,6 +394,7 @@ function ScaleSelector() { ++this.power; this.scale *= 2.0; this.update(); + rescaleImport(); resizeVoxelSound.play(voxelSizePlus); } } @@ -403,6 +405,7 @@ function ScaleSelector() { --this.power; this.scale /= 2.0; this.update(); + rescaleImport(); resizeVoxelSound.play(voxelSizePlus); } }