mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-07 08:33:38 +02:00
prevent spectator cam from updating secondary cam aspect ratio when its in use by mirrors
This commit is contained in:
parent
8389137caa
commit
1aeadcbc64
1 changed files with 4 additions and 1 deletions
|
@ -311,7 +311,10 @@
|
|||
viewFinderOverlayDim = { x: glassPaneWidth, y: -glassPaneWidth, z: 0 };
|
||||
}
|
||||
updateOverlay();
|
||||
spectatorCameraConfig.resetSizeSpectatorCamera(geometryChanged.width, geometryChanged.height);
|
||||
// if secondary camera is currently being used for mirror projection then don't update it's aspect ratio (will be done in spectatorCameraOn)
|
||||
if (!spectatorCameraConfig.mirrorProjection) {
|
||||
spectatorCameraConfig.resetSizeSpectatorCamera(geometryChanged.width, geometryChanged.height);
|
||||
}
|
||||
setDisplay(monitorShowsCameraView);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue