Explorar o código

Merge branch 'master' of https://github.com/BabylonJS/Babylon.js

David Catuhe %!s(int64=7) %!d(string=hai) anos
pai
achega
63169237c7
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      src/Cameras/VR/babylon.vrExperienceHelper.ts

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

@@ -122,6 +122,14 @@ module BABYLON {
                     this._leftLaserPointer.isVisible = false;
                 }
             }
+            else {
+                if(this._rightLaserPointer) {
+                    this._rightLaserPointer.isVisible = true;
+                }
+                else if (this._leftLaserPointer) {
+                    this._leftLaserPointer.isVisible = true;
+                }
+            }
         }
 
         public get deviceOrientationCamera(): Nullable<DeviceOrientationCamera> {