David Catuhe 7 سال پیش
والد
کامیت
cd9e5fe008

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 3214 - 3214
dist/preview release/babylon.d.ts


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

@@ -9191,7 +9191,6 @@ var BABYLON;
                 return _this._vrDisplay = devices[0];
             };
             if (navigator.getVRDisplays) {
-                // TODO: Backwards compatible for 1.0?
                 navigator.getVRDisplays().then(getWebVRDevices).then(callback).catch(function (error) {
                     // TODO: System CANNOT support WebVR, despite API presence.
                     _this._vrSupported = false;

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 3214 - 3214
dist/preview release/babylon.module.d.ts


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 8324 - 8324
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.d.ts


+ 0 - 1
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.max.js

@@ -9191,7 +9191,6 @@ var BABYLON;
                 return _this._vrDisplay = devices[0];
             };
             if (navigator.getVRDisplays) {
-                // TODO: Backwards compatible for 1.0?
                 navigator.getVRDisplays().then(getWebVRDevices).then(callback).catch(function (error) {
                     // TODO: System CANNOT support WebVR, despite API presence.
                     _this._vrSupported = false;

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 8324 - 8324
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.module.d.ts


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 4 - 4
dist/preview release/inspector/babylon.inspector.bundle.js


+ 4 - 3
dist/preview release/inspector/babylon.inspector.js

@@ -1304,10 +1304,11 @@ var INSPECTOR;
          */
         MeshAdapter.prototype._drawAxis = function () {
             this._obj.computeWorldMatrix();
+            var mesh = this._obj;
             // Axis
-            var x = new BABYLON.Vector3(8 / this._obj.scaling.x, 0, 0);
-            var y = new BABYLON.Vector3(0, 8 / this._obj.scaling.y, 0);
-            var z = new BABYLON.Vector3(0, 0, 8 / this._obj.scaling.z);
+            var x = new BABYLON.Vector3(8 / Math.abs(mesh.scaling.x), 0, 0);
+            var y = new BABYLON.Vector3(0, 8 / Math.abs(mesh.scaling.y), 0);
+            var z = new BABYLON.Vector3(0, 0, 8 / Math.abs(mesh.scaling.z));
             this._axesViewer = new BABYLON.Debug.AxesViewer(this._obj.getScene());
             this._axesViewer.update(this._obj.position, x, y, z);
         };

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 4 - 4
dist/preview release/inspector/babylon.inspector.min.js


+ 5 - 3
inspector/src/adapters/MeshAdapter.ts

@@ -79,10 +79,12 @@ module INSPECTOR {
         private _drawAxis() {
             this._obj.computeWorldMatrix();
 
+            let mesh = this._obj as BABYLON.AbstractMesh;
+
             // Axis
-            var x = new BABYLON.Vector3(8 / (this._obj as BABYLON.AbstractMesh).scaling.x, 0, 0);
-            var y = new BABYLON.Vector3(0, 8 / (this._obj as BABYLON.AbstractMesh).scaling.y, 0);
-            var z = new BABYLON.Vector3(0, 0, 8 / (this._obj as BABYLON.AbstractMesh).scaling.z);
+            var x = new BABYLON.Vector3(8 / Math.abs(mesh.scaling.x), 0, 0);
+            var y = new BABYLON.Vector3(0, 8 / Math.abs(mesh.scaling.y), 0);
+            var z = new BABYLON.Vector3(0, 0, 8 / Math.abs(mesh.scaling.z));
 
             this._axesViewer = new BABYLON.Debug.AxesViewer(this._obj.getScene());
             this._axesViewer.update(this._obj.position, x, y, z);

+ 0 - 1
src/Engine/babylon.engine.ts

@@ -1766,7 +1766,6 @@
             }
 
             if (navigator.getVRDisplays) {
-                // TODO: Backwards compatible for 1.0?
                 navigator.getVRDisplays().then(getWebVRDevices).then(callback).catch((error: () => void) => {
                     // TODO: System CANNOT support WebVR, despite API presence.
                     this._vrSupported = false;