Explorar o código

Merge pull request #3426 from RaananW/#3412

Make sure we return to the last active camera
David Catuhe %!s(int64=7) %!d(string=hai) anos
pai
achega
c3e4d1c30f
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/Cameras/VR/babylon.vrExperienceHelper.ts

+ 2 - 0
src/Cameras/VR/babylon.vrExperienceHelper.ts

@@ -483,6 +483,8 @@ module BABYLON {
 
             if (this._scene.activeCamera) {
                 this._position = this._scene.activeCamera.position.clone();
+                // make sure that we return to the last active camera
+                this._existingCamera = this._scene.activeCamera;
             }
 
             if (this._webVRrequesting)