mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 06:24:20 +02:00
Rescale import when using keys +/-
This commit is contained in:
parent
7782e53363
commit
178f845ad0
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue