Fix for mirror cam not being initialized
This commit is contained in:
parent
7818f985be
commit
39fad9cb3a
@ -73,7 +73,7 @@ public class VREnvironment {
|
|||||||
|
|
||||||
guiManager = new VRGuiManager(this);
|
guiManager = new VRGuiManager(this);
|
||||||
mouseManager = new VRMouseManager(this);
|
mouseManager = new VRMouseManager(this);
|
||||||
dummyCam = new Camera(settings.getWidth(), settings.getHeight());
|
// dummyCam = new Camera(settings.getWidth(), settings.getHeight());
|
||||||
|
|
||||||
processSettings();
|
processSettings();
|
||||||
}
|
}
|
||||||
@ -332,7 +332,7 @@ public class VREnvironment {
|
|||||||
*/
|
*/
|
||||||
public Camera getCamera() {
|
public Camera getCamera() {
|
||||||
if( isInVR() && getVRViewManager() != null && getVRViewManager().getLeftCamera() != null ) {
|
if( isInVR() && getVRViewManager() != null && getVRViewManager().getLeftCamera() != null ) {
|
||||||
return dummyCam;
|
return getDummyCamera();
|
||||||
}
|
}
|
||||||
|
|
||||||
return application.getCamera();
|
return application.getCamera();
|
||||||
@ -353,7 +353,6 @@ public class VREnvironment {
|
|||||||
throw new IllegalStateException("VR environment is not attached to any application.");
|
throw new IllegalStateException("VR environment is not attached to any application.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return dummyCam;
|
return dummyCam;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user