mirror of
https://github.com/overte-org/overte.git
synced 2025-04-07 12:53:44 +02:00
Don't rescale tablet, in desktop mode, when sensorToWorldScale changes.
This commit is contained in:
parent
ae2d0e89b4
commit
a505a16232
1 changed files with 4 additions and 2 deletions
|
@ -84,8 +84,10 @@
|
|||
}
|
||||
|
||||
function onSensorToWorldScaleChanged(sensorScaleFactor) {
|
||||
var newTabletScalePercentage = getTabletScalePercentageFromSettings();
|
||||
resizeTablet(DEFAULT_WIDTH * (newTabletScalePercentage / 100), undefined, sensorScaleFactor);
|
||||
if (HMD.active) {
|
||||
var newTabletScalePercentage = getTabletScalePercentageFromSettings();
|
||||
resizeTablet(DEFAULT_WIDTH * (newTabletScalePercentage / 100), undefined, sensorScaleFactor);
|
||||
}
|
||||
}
|
||||
|
||||
function rezTablet() {
|
||||
|
|
Loading…
Reference in a new issue