提交 1ce8842c 编写于 作者: T tschw

Avoid obscure error on certain non-image textures.

上级 ae36bfd1
......@@ -384,7 +384,10 @@ def _valid_textures(material, strict_use=True):
in_use = texture.use
else:
in_use = True
if texture.texture.type != IMAGE or not in_use:
if not in_use:
continue
if not texture.texture or texture.texture.type != IMAGE:
logger.warning("Unable to export non-image texture %s", texture)
continue
logger.debug("Valid texture found %s", texture)
yield texture
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册