mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 04:13:32 +02:00
Make sure our mode is fully established before we use the mirror camera to
render the billboard. Closes #2103.
This commit is contained in:
parent
e7ce7288de
commit
8644280eb5
2 changed files with 2 additions and 3 deletions
interface/src
|
@ -1852,8 +1852,7 @@ void Application::init() {
|
|||
_myCamera.setModeShiftPeriod(1.0f);
|
||||
|
||||
_mirrorCamera.setMode(CAMERA_MODE_MIRROR);
|
||||
_mirrorCamera.setAspectRatio((float)MIRROR_VIEW_WIDTH / (float)MIRROR_VIEW_HEIGHT);
|
||||
_mirrorCamera.setFieldOfView(30);
|
||||
_mirrorCamera.setModeShiftPeriod(0.0f);
|
||||
|
||||
OculusManager::connect();
|
||||
if (OculusManager::isConnected()) {
|
||||
|
|
|
@ -126,7 +126,7 @@ void Camera::setModeShiftPeriod (float period) {
|
|||
|
||||
// if a zero period was requested, we clearly want to snap immediately to the target
|
||||
if (period == 0.0f) {
|
||||
update(MIN_PERIOD);
|
||||
update(MAX_PERIOD);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue