Skip to content

Commit

Permalink
Check type of Source.data for loading images (#24067)
Browse files Browse the repository at this point in the history
  • Loading branch information
fluxxu authored May 15, 2022
1 parent 5c70435 commit e3c8c74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loaders/ObjectLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class ObjectLoader extends Loader {

for ( const uuid in images ) {

if ( images[ uuid ] instanceof HTMLImageElement ) {
if ( images[ uuid ].data instanceof HTMLImageElement ) {

hasImages = true;
break;
Expand Down

0 comments on commit e3c8c74

Please sign in to comment.