Browse Source

Check type of Source.data for loading images (#24067)

Flux Xu 3 năm trước cách đây
mục cha
commit
e3c8c74153
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/loaders/ObjectLoader.js

+ 1 - 1
src/loaders/ObjectLoader.js

@@ -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;