@@ -23532,11 +23532,11 @@ var BABYLON;
this.delayLoadState = BABYLON.Engine.DELAYLOADSTATE_NOTLOADED;
}
- else {
+ else if (onLoad) {
if (this._texture.isReady) {
BABYLON.Tools.SetImmediate(function () { return onLoad(); });
- else if (onLoad) {
+ else {
this._texture.onLoadedCallbacks.push(onLoad);
@@ -39,11 +39,11 @@ var BABYLON;
@@ -49,10 +49,10 @@
} else {
this.delayLoadState = Engine.DELAYLOADSTATE_NOTLOADED;
- } else {
+ } else if (onLoad) {
Tools.SetImmediate(() => onLoad());
- } else if (onLoad) {
+ } else {