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