mirror of
https://github.com/overte-org/overte.git
synced 2025-08-17 02:25:13 +02:00
Fix scale issue in editVoxels.js (closes #2776)
This commit is contained in:
parent
31b5c39f16
commit
7855bf8e24
1 changed files with 2 additions and 2 deletions
|
@ -331,8 +331,9 @@ function ScaleSelector() {
|
|||
});
|
||||
this.setScale = function(scale) {
|
||||
this.scale = scale;
|
||||
this.power = Math.floor(Math.log(scale));
|
||||
this.power = Math.ceil(Math.log(scale) * Math.LOG2E);
|
||||
rescaleImport();
|
||||
this.update();
|
||||
}
|
||||
|
||||
this.show = function(doShow) {
|
||||
|
@ -835,7 +836,6 @@ function showPreviewLines() {
|
|||
|
||||
if (copyScale) {
|
||||
scaleSelector.setScale(intersection.voxel.s);
|
||||
scaleSelector.update();
|
||||
}
|
||||
moveTools();
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue