Rescale import when using keys +/-

This commit is contained in:
Atlante45 2014-04-18 16:40:13 -07:00
parent 7782e53363
commit 178f845ad0

View file

@ -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);
}
}