Преглед изворни кода

FBXLoader: can't check image until loaded (#22289)

Resolves https://github.com/mrdoob/three.js/issues/22285

`texture.image` will always be undefined here as the textures are asynchronously loaded.
camnewnham пре 4 година
родитељ
комит
0179baddfc
1 измењених фајлова са 1 додато и 10 уклоњено
  1. 1 10
      examples/jsm/loaders/FBXLoader.js

+ 1 - 10
examples/jsm/loaders/FBXLoader.js

@@ -701,16 +701,7 @@ class FBXTreeParser {
 		}
 
 		const texture = textureMap.get( id );
-
-		if ( texture !== undefined && texture.image !== undefined ) {
-
-			return texture;
-
-		} else {
-
-			return undefined;
-
-		}
+		return texture;
 
 	}