davrous 8 lat temu
rodzic
commit
94678b86d6

Plik diff jest za duży
+ 3358 - 3358
dist/preview release/babylon.d.ts


Plik diff jest za duży
+ 1 - 1
dist/preview release/babylon.js


+ 6 - 1
dist/preview release/babylon.max.js

@@ -62199,7 +62199,12 @@ var BABYLON;
         ;
         ;
         WebVRFreeCamera.prototype.getForwardRay = function (length) {
         WebVRFreeCamera.prototype.getForwardRay = function (length) {
             if (length === void 0) { length = 100; }
             if (length === void 0) { length = 100; }
-            return _super.prototype.getForwardRay.call(this, length, this.leftCamera.getWorldMatrix(), this.position.add(this.devicePosition)); // Need the actual rendered camera
+            if (this.leftCamera) {
+                return _super.prototype.getForwardRay.call(this, length, this.leftCamera.getWorldMatrix(), this.position.add(this.devicePosition)); // Need the actual rendered camera
+            }
+            else {
+                return _super.prototype.getForwardRay.call(this, length);
+            }
         };
         };
         WebVRFreeCamera.prototype._checkInputs = function () {
         WebVRFreeCamera.prototype._checkInputs = function () {
             if (this._vrEnabled) {
             if (this._vrEnabled) {

Plik diff jest za duży
+ 3358 - 3358
dist/preview release/babylon.module.d.ts


Plik diff jest za duży
+ 1 - 1
dist/preview release/babylon.worker.js