Skip to content

Commit

Permalink
Merge pull request #12601 from slash9494/master
Browse files Browse the repository at this point in the history
Add missing observer trigger - onLoadedObservable notify method for hdrCubeTexture
  • Loading branch information
sebavan committed May 30, 2022
2 parents 010a6c5 + bc6bcd7 commit 1f2b083
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/dev/core/src/Engines/Extensions/engine.rawTexture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,9 @@ ThinEngine.prototype.createRawCubeTextureFromUrl = function (
// this.resetTextureCache();
scene?._removePendingData(texture);

texture.onLoadedObservable.notifyObservers(texture);
texture.onLoadedObservable.clear();

if (onLoad) {
onLoad();
}
Expand Down

0 comments on commit 1f2b083

Please sign in to comment.