prevent spectator cam from updating secondary cam aspect ratio when its in use by mirrors

This commit is contained in:
David Back 2017-11-22 11:38:52 -08:00
parent 8389137caa
commit 1aeadcbc64

View file

@ -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);
}