mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
Used wrong formula in previous commit
This commit is contained in:
parent
7855bf8e24
commit
1ecf0e3b9d
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue