David Catuhe 7 năm trước cách đây
mục cha
commit
94ec1546cc

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1846 - 1846
dist/preview release/babylon.d.ts


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 8 - 8
dist/preview release/babylon.js


+ 11 - 12
dist/preview release/babylon.max.js

@@ -10071,7 +10071,7 @@ var BABYLON;
                     else {
                     else {
                         BABYLON.Tools.LoadImage(url, onload, onerror, scene ? scene.database : null);
                         BABYLON.Tools.LoadImage(url, onload, onerror, scene ? scene.database : null);
                     }
                     }
-                else if (buffer instanceof Array || typeof buffer === "string")
+                else if (buffer instanceof Array || typeof buffer === "string" || buffer instanceof ArrayBuffer)
                     BABYLON.Tools.LoadImage(buffer, onload, onerror, scene ? scene.database : null);
                     BABYLON.Tools.LoadImage(buffer, onload, onerror, scene ? scene.database : null);
                 else
                 else
                     onload(buffer);
                     onload(buffer);
@@ -10669,14 +10669,16 @@ var BABYLON;
             var isKTX = false;
             var isKTX = false;
             var isDDS = false;
             var isDDS = false;
             var lastDot = rootUrl.lastIndexOf('.');
             var lastDot = rootUrl.lastIndexOf('.');
-            var extension = forcedExtension ? forcedExtension : rootUrl.substring(lastDot).toLowerCase();
-            if (this._textureFormatInUse) {
-                extension = this._textureFormatInUse;
-                rootUrl = rootUrl.substring(0, lastDot) + this._textureFormatInUse;
-                isKTX = true;
-            }
-            else {
-                isDDS = (extension === ".dds");
+            if (lastDot > -1) {
+                var extension = forcedExtension ? forcedExtension : rootUrl.substring(lastDot).toLowerCase();
+                if (this._textureFormatInUse) {
+                    extension = this._textureFormatInUse;
+                    rootUrl = rootUrl.substring(0, lastDot) + this._textureFormatInUse;
+                    isKTX = true;
+                }
+                else {
+                    isDDS = (extension === ".dds");
+                }
             }
             }
             var onerror = function (request, exception) {
             var onerror = function (request, exception) {
                 if (onError) {
                 if (onError) {
@@ -48380,9 +48382,6 @@ var BABYLON;
                     }
                     }
                 }
                 }
             }
             }
-            if (this.renderList && this.renderList.length === 0) {
-                return;
-            }
             this.onBeforeBindObservable.notifyObservers(this);
             this.onBeforeBindObservable.notifyObservers(this);
             // Set custom projection.
             // Set custom projection.
             // Needs to be before binding to prevent changing the aspect ratio.
             // Needs to be before binding to prevent changing the aspect ratio.

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1846 - 1846
dist/preview release/babylon.module.d.ts


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 8 - 8
dist/preview release/babylon.worker.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 8667 - 8667
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.d.ts


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 8 - 8
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.js


+ 11 - 12
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.max.js

@@ -10071,7 +10071,7 @@ var BABYLON;
                     else {
                     else {
                         BABYLON.Tools.LoadImage(url, onload, onerror, scene ? scene.database : null);
                         BABYLON.Tools.LoadImage(url, onload, onerror, scene ? scene.database : null);
                     }
                     }
-                else if (buffer instanceof Array || typeof buffer === "string")
+                else if (buffer instanceof Array || typeof buffer === "string" || buffer instanceof ArrayBuffer)
                     BABYLON.Tools.LoadImage(buffer, onload, onerror, scene ? scene.database : null);
                     BABYLON.Tools.LoadImage(buffer, onload, onerror, scene ? scene.database : null);
                 else
                 else
                     onload(buffer);
                     onload(buffer);
@@ -10669,14 +10669,16 @@ var BABYLON;
             var isKTX = false;
             var isKTX = false;
             var isDDS = false;
             var isDDS = false;
             var lastDot = rootUrl.lastIndexOf('.');
             var lastDot = rootUrl.lastIndexOf('.');
-            var extension = forcedExtension ? forcedExtension : rootUrl.substring(lastDot).toLowerCase();
-            if (this._textureFormatInUse) {
-                extension = this._textureFormatInUse;
-                rootUrl = rootUrl.substring(0, lastDot) + this._textureFormatInUse;
-                isKTX = true;
-            }
-            else {
-                isDDS = (extension === ".dds");
+            if (lastDot > -1) {
+                var extension = forcedExtension ? forcedExtension : rootUrl.substring(lastDot).toLowerCase();
+                if (this._textureFormatInUse) {
+                    extension = this._textureFormatInUse;
+                    rootUrl = rootUrl.substring(0, lastDot) + this._textureFormatInUse;
+                    isKTX = true;
+                }
+                else {
+                    isDDS = (extension === ".dds");
+                }
             }
             }
             var onerror = function (request, exception) {
             var onerror = function (request, exception) {
                 if (onError) {
                 if (onError) {
@@ -48380,9 +48382,6 @@ var BABYLON;
                     }
                     }
                 }
                 }
             }
             }
-            if (this.renderList && this.renderList.length === 0) {
-                return;
-            }
             this.onBeforeBindObservable.notifyObservers(this);
             this.onBeforeBindObservable.notifyObservers(this);
             // Set custom projection.
             // Set custom projection.
             // Needs to be before binding to prevent changing the aspect ratio.
             // Needs to be before binding to prevent changing the aspect ratio.

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 8667 - 8667
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.module.d.ts


+ 10 - 8
src/Engine/babylon.engine.ts

@@ -2938,7 +2938,7 @@
                     } else {
                     } else {
                         Tools.LoadImage(url, onload, onerror, scene ? scene.database : null);
                         Tools.LoadImage(url, onload, onerror, scene ? scene.database : null);
                     }
                     }
-                else if (buffer instanceof Array || typeof buffer === "string")
+                else if (buffer instanceof Array || typeof buffer === "string" || buffer instanceof ArrayBuffer)
                     Tools.LoadImage(buffer, onload, onerror, scene ? scene.database : null);
                     Tools.LoadImage(buffer, onload, onerror, scene ? scene.database : null);
                 else
                 else
                     onload(<HTMLImageElement>buffer);
                     onload(<HTMLImageElement>buffer);
@@ -3690,13 +3690,15 @@
             var isKTX = false;
             var isKTX = false;
             var isDDS = false;
             var isDDS = false;
             var lastDot = rootUrl.lastIndexOf('.');
             var lastDot = rootUrl.lastIndexOf('.');
-            var extension = forcedExtension ? forcedExtension : rootUrl.substring(lastDot).toLowerCase();
-            if (this._textureFormatInUse) {
-                extension = this._textureFormatInUse;
-                rootUrl = rootUrl.substring(0, lastDot) + this._textureFormatInUse;
-                isKTX = true;
-            } else {
-                isDDS = (extension === ".dds");
+            if (lastDot > -1) {
+                var extension = forcedExtension ? forcedExtension : rootUrl.substring(lastDot).toLowerCase();
+                if (this._textureFormatInUse) {
+                    extension = this._textureFormatInUse;
+                    rootUrl = rootUrl.substring(0, lastDot) + this._textureFormatInUse;
+                    isKTX = true;
+                } else {
+                    isDDS = (extension === ".dds");
+                }
             }
             }
 
 
             let onerror = (request: XMLHttpRequest, exception: any) => {
             let onerror = (request: XMLHttpRequest, exception: any) => {

+ 0 - 4
src/Materials/Textures/babylon.renderTargetTexture.ts

@@ -305,10 +305,6 @@
                 }
                 }
             }
             }
 
 
-            if (this.renderList && this.renderList.length === 0) {
-                return;
-            }
-
             this.onBeforeBindObservable.notifyObservers(this);
             this.onBeforeBindObservable.notifyObservers(this);
 
 
             // Set custom projection.
             // Set custom projection.