David Catuhe 7 yıl önce
ebeveyn
işleme
fe830c3c1e

Dosya farkı çok büyük olduğundan ihmal edildi
+ 4873 - 4872
Playground/babylon.d.txt


Dosya farkı çok büyük olduğundan ihmal edildi
+ 4312 - 4311
dist/preview release/babylon.d.ts


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
dist/preview release/babylon.js


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

@@ -72863,7 +72863,11 @@ var BABYLON;
             var _this = this;
             if (!this.rotationQuaternion.equals(this._cache.rotationQuaternion) || !this.position.equals(this._cache.position)) {
                 // Update to ensure devicePosition is up to date with most recent _deviceRoomPosition
-                this.update();
+                if (!this.updateCacheCalled) {
+                    // make sure it is only called once per loop. this.update() might cause an infinite loop.
+                    this.updateCacheCalled = true;
+                    this.update();
+                }
                 // Set working vector to the device position in room space rotated by the new rotation
                 this.rotationQuaternion.toRotationMatrix(this._workingMatrix);
                 BABYLON.Vector3.TransformCoordinatesToRef(this._deviceRoomPosition, this._workingMatrix, this._workingVector);
@@ -72882,11 +72886,11 @@ var BABYLON;
                     controller._deviceToWorld = _this._deviceToWorld;
                     controller.update();
                 });
-                this.update();
             }
             if (!ignoreParentClass) {
                 _super.prototype._updateCache.call(this);
             }
+            this.updateCacheCalled = false;
         };
         WebVRFreeCamera.prototype.update = function () {
             // Get current device position in babylon world

Dosya farkı çok büyük olduğundan ihmal edildi
+ 13 - 13
dist/preview release/babylon.worker.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 2134 - 2133
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.d.ts


Dosya farkı çok büyük olduğundan ihmal edildi
+ 4 - 4
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.js


+ 6 - 2
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.max.js

@@ -72709,7 +72709,11 @@ var BABYLON;
             var _this = this;
             if (!this.rotationQuaternion.equals(this._cache.rotationQuaternion) || !this.position.equals(this._cache.position)) {
                 // Update to ensure devicePosition is up to date with most recent _deviceRoomPosition
-                this.update();
+                if (!this.updateCacheCalled) {
+                    // make sure it is only called once per loop. this.update() might cause an infinite loop.
+                    this.updateCacheCalled = true;
+                    this.update();
+                }
                 // Set working vector to the device position in room space rotated by the new rotation
                 this.rotationQuaternion.toRotationMatrix(this._workingMatrix);
                 BABYLON.Vector3.TransformCoordinatesToRef(this._deviceRoomPosition, this._workingMatrix, this._workingVector);
@@ -72728,11 +72732,11 @@ var BABYLON;
                     controller._deviceToWorld = _this._deviceToWorld;
                     controller.update();
                 });
-                this.update();
             }
             if (!ignoreParentClass) {
                 _super.prototype._updateCache.call(this);
             }
+            this.updateCacheCalled = false;
         };
         WebVRFreeCamera.prototype.update = function () {
             // Get current device position in babylon world

Dosya farkı çok büyük olduğundan ihmal edildi
+ 4 - 4
dist/preview release/viewer/babylon.viewer.js