فهرست منبع

Make sure we return to the last active camera
fixes 3412 https://github.com/BabylonJS/Babylon.js/issues/3412

Raanan Weber 7 سال پیش
والد
کامیت
5fec4d0082
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  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)