David Catuhe 6 سال پیش
والد
کامیت
1fce857200

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 12811 - 12807
Playground/babylon.d.txt


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


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


+ 17 - 4
dist/preview release/babylon.max.js

@@ -12643,7 +12643,7 @@ var BABYLON;
             this._badOS = /iPad/i.test(navigator.userAgent) || /iPhone/i.test(navigator.userAgent);
             // Detect if we are running on a faulty buggy desktop OS.
             this._badDesktopOS = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
-            console.log("Babylon.js engine (v" + Engine.Version + ") launched");
+            console.log("Babylon.js v" + Engine.Version + " - " + this.description);
             this.enableOfflineSupport = Engine.OfflineProviderFactory !== undefined;
         }
         Object.defineProperty(Engine, "LastCreatedEngine", {
@@ -12699,6 +12699,20 @@ var BABYLON;
             enumerable: true,
             configurable: true
         });
+        Object.defineProperty(Engine.prototype, "description", {
+            /**
+             * Returns a string describing the current engine
+             */
+            get: function () {
+                var description = "WebGL" + this.webGLVersion;
+                if (this._caps.parallelShaderCompile) {
+                    description += " - Parallel shader compilation";
+                }
+                return description;
+            },
+            enumerable: true,
+            configurable: true
+        });
         Object.defineProperty(Engine.prototype, "isInVRExclusivePointerMode", {
             /**
              * Gets a boolean indicating that the engine is currently in VR exclusive mode for the pointers
@@ -26943,7 +26957,6 @@ var BABYLON;
                         checkPicking = act.hasPickTriggers;
                     }
                 }
-                var eventRaised = false;
                 if (checkPicking) {
                     var btn = evt.button;
                     clickInfo.hasSwiped = _this._isPointerSwiping();
@@ -36569,7 +36582,7 @@ var BABYLON;
             if (!doNotAdd) {
                 this._scene.addMaterial(this);
             }
-            if (scene.useMaterialMeshMap) {
+            if (this._scene.useMaterialMeshMap) {
                 this.meshMap = {};
             }
         }
@@ -115550,7 +115563,7 @@ var BABYLON;
             _this._caps.depthTextureExtension = false;
             _this._caps.vertexArrayObject = false;
             _this._caps.instancedArrays = false;
-            BABYLON.Tools.Log("Babylon.js null engine (v" + BABYLON.Engine.Version + ") launched");
+            BABYLON.Tools.Log("Babylon.js v" + BABYLON.Engine.Version + " - Null engine");
             // Wrappers
             if (typeof URL === "undefined") {
                 URL = {

+ 17 - 4
dist/preview release/babylon.no-module.max.js

@@ -12610,7 +12610,7 @@ var BABYLON;
             this._badOS = /iPad/i.test(navigator.userAgent) || /iPhone/i.test(navigator.userAgent);
             // Detect if we are running on a faulty buggy desktop OS.
             this._badDesktopOS = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
-            console.log("Babylon.js engine (v" + Engine.Version + ") launched");
+            console.log("Babylon.js v" + Engine.Version + " - " + this.description);
             this.enableOfflineSupport = Engine.OfflineProviderFactory !== undefined;
         }
         Object.defineProperty(Engine, "LastCreatedEngine", {
@@ -12666,6 +12666,20 @@ var BABYLON;
             enumerable: true,
             configurable: true
         });
+        Object.defineProperty(Engine.prototype, "description", {
+            /**
+             * Returns a string describing the current engine
+             */
+            get: function () {
+                var description = "WebGL" + this.webGLVersion;
+                if (this._caps.parallelShaderCompile) {
+                    description += " - Parallel shader compilation";
+                }
+                return description;
+            },
+            enumerable: true,
+            configurable: true
+        });
         Object.defineProperty(Engine.prototype, "isInVRExclusivePointerMode", {
             /**
              * Gets a boolean indicating that the engine is currently in VR exclusive mode for the pointers
@@ -26910,7 +26924,6 @@ var BABYLON;
                         checkPicking = act.hasPickTriggers;
                     }
                 }
-                var eventRaised = false;
                 if (checkPicking) {
                     var btn = evt.button;
                     clickInfo.hasSwiped = _this._isPointerSwiping();
@@ -36536,7 +36549,7 @@ var BABYLON;
             if (!doNotAdd) {
                 this._scene.addMaterial(this);
             }
-            if (scene.useMaterialMeshMap) {
+            if (this._scene.useMaterialMeshMap) {
                 this.meshMap = {};
             }
         }
@@ -115517,7 +115530,7 @@ var BABYLON;
             _this._caps.depthTextureExtension = false;
             _this._caps.vertexArrayObject = false;
             _this._caps.instancedArrays = false;
-            BABYLON.Tools.Log("Babylon.js null engine (v" + BABYLON.Engine.Version + ") launched");
+            BABYLON.Tools.Log("Babylon.js v" + BABYLON.Engine.Version + " - Null engine");
             // Wrappers
             if (typeof URL === "undefined") {
                 URL = {

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


+ 17 - 4
dist/preview release/es6.js

@@ -12610,7 +12610,7 @@ var BABYLON;
             this._badOS = /iPad/i.test(navigator.userAgent) || /iPhone/i.test(navigator.userAgent);
             // Detect if we are running on a faulty buggy desktop OS.
             this._badDesktopOS = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
-            console.log("Babylon.js engine (v" + Engine.Version + ") launched");
+            console.log("Babylon.js v" + Engine.Version + " - " + this.description);
             this.enableOfflineSupport = Engine.OfflineProviderFactory !== undefined;
         }
         Object.defineProperty(Engine, "LastCreatedEngine", {
@@ -12666,6 +12666,20 @@ var BABYLON;
             enumerable: true,
             configurable: true
         });
+        Object.defineProperty(Engine.prototype, "description", {
+            /**
+             * Returns a string describing the current engine
+             */
+            get: function () {
+                var description = "WebGL" + this.webGLVersion;
+                if (this._caps.parallelShaderCompile) {
+                    description += " - Parallel shader compilation";
+                }
+                return description;
+            },
+            enumerable: true,
+            configurable: true
+        });
         Object.defineProperty(Engine.prototype, "isInVRExclusivePointerMode", {
             /**
              * Gets a boolean indicating that the engine is currently in VR exclusive mode for the pointers
@@ -26910,7 +26924,6 @@ var BABYLON;
                         checkPicking = act.hasPickTriggers;
                     }
                 }
-                var eventRaised = false;
                 if (checkPicking) {
                     var btn = evt.button;
                     clickInfo.hasSwiped = _this._isPointerSwiping();
@@ -36536,7 +36549,7 @@ var BABYLON;
             if (!doNotAdd) {
                 this._scene.addMaterial(this);
             }
-            if (scene.useMaterialMeshMap) {
+            if (this._scene.useMaterialMeshMap) {
                 this.meshMap = {};
             }
         }
@@ -115517,7 +115530,7 @@ var BABYLON;
             _this._caps.depthTextureExtension = false;
             _this._caps.vertexArrayObject = false;
             _this._caps.instancedArrays = false;
-            BABYLON.Tools.Log("Babylon.js null engine (v" + BABYLON.Engine.Version + ") launched");
+            BABYLON.Tools.Log("Babylon.js v" + BABYLON.Engine.Version + " - Null engine");
             // Wrappers
             if (typeof URL === "undefined") {
                 URL = {

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


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


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


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


+ 2 - 1
dist/preview release/what's new.md

@@ -53,4 +53,5 @@
 ## Breaking changes
 
 - `Database.IDBStorageEnabled` is now false by default ([Deltakosh](https://github.com/deltakosh))
-- `Database.openAsync` was renamed by `Database.open`
+- `Database.openAsync` was renamed by `Database.open` ([Deltakosh](https://github.com/deltakosh))
+- `scene.database` was renamed to `scene.offlineProvider` ([Deltakosh](https://github.com/deltakosh))

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

@@ -484,6 +484,19 @@ module BABYLON {
             return "4.0.0-alpha.1";
         }
 
+        /**
+         * Returns a string describing the current engine
+         */
+        public get description(): string {
+            let description = "WebGL" + this.webGLVersion;
+
+            if (this._caps.parallelShaderCompile) {
+                description += " - Parallel shader compilation";
+            }
+
+            return description;
+        }
+
         // Updatable statics so stick with vars here
 
         /**
@@ -1230,7 +1243,7 @@ module BABYLON {
             // Detect if we are running on a faulty buggy desktop OS.
             this._badDesktopOS = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
 
-            console.log("Babylon.js engine (v" + Engine.Version + ") launched");
+            console.log(`Babylon.js v${Engine.Version} - ${this.description}`);
 
             this.enableOfflineSupport = Engine.OfflineProviderFactory !== undefined;
         }

+ 1 - 1
src/Engine/babylon.nullEngine.ts

@@ -116,7 +116,7 @@ module BABYLON {
             this._caps.vertexArrayObject = false;
             this._caps.instancedArrays = false;
 
-            Tools.Log("Babylon.js null engine (v" + Engine.Version + ") launched");
+            Tools.Log(`Babylon.js v${Engine.Version} - Null engine`);
 
             // Wrappers
             if (typeof URL === "undefined") {

+ 2 - 3
src/babylon.scene.ts

@@ -1894,7 +1894,6 @@ module BABYLON {
                         checkPicking = act.hasPickTriggers;
                     }
                 }
-                let eventRaised = false;
                 if (checkPicking) {
                     let btn = evt.button;
                     clickInfo.hasSwiped = this._isPointerSwiping();
@@ -4407,10 +4406,10 @@ module BABYLON {
                     var internalTexture = this.activeCamera.customDefaultRenderTarget.getInternalTexture();
                     if (internalTexture) {
                         engine.bindFramebuffer(internalTexture);
-                    }else {
+                    } else {
                         Tools.Error("Camera contains invalid customDefaultRenderTarget");
                     }
-                }else {
+                } else {
                     engine.restoreDefaultFramebuffer(); // Restore back buffer if needed
                 }
             }