未验证 提交 0179badd 编写于 作者: C camnewnham 提交者: GitHub

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.
上级 efa1b477
......@@ -701,16 +701,7 @@ class FBXTreeParser {
}
const texture = textureMap.get( id );
if ( texture !== undefined && texture.image !== undefined ) {
return texture;
} else {
return undefined;
}
return texture;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册