From 39fad9cb3af2a849be578017a864e2ceb8365ccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rickard=20Ed=C3=A9n?= Date: Tue, 4 Apr 2017 10:00:50 +0200 Subject: [PATCH] Fix for mirror cam not being initialized --- jme3-vr/src/main/java/com/jme3/app/VREnvironment.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/jme3-vr/src/main/java/com/jme3/app/VREnvironment.java b/jme3-vr/src/main/java/com/jme3/app/VREnvironment.java index 93f6b063a..5358ff42a 100644 --- a/jme3-vr/src/main/java/com/jme3/app/VREnvironment.java +++ b/jme3-vr/src/main/java/com/jme3/app/VREnvironment.java @@ -73,7 +73,7 @@ public class VREnvironment { guiManager = new VRGuiManager(this); mouseManager = new VRMouseManager(this); - dummyCam = new Camera(settings.getWidth(), settings.getHeight()); +// dummyCam = new Camera(settings.getWidth(), settings.getHeight()); processSettings(); } @@ -332,7 +332,7 @@ public class VREnvironment { */ public Camera getCamera() { if( isInVR() && getVRViewManager() != null && getVRViewManager().getLeftCamera() != null ) { - return dummyCam; + return getDummyCamera(); } return application.getCamera(); @@ -353,7 +353,6 @@ public class VREnvironment { throw new IllegalStateException("VR environment is not attached to any application."); } } - return dummyCam; }