提交 504bdabe 编写于 作者: T tschw

Avoid obscure error on certain non-image textures.

上级 afd72f5d
......@@ -174,5 +174,6 @@ def textures():
if mat.users == 0:
continue
for slot in mat.texture_slots:
if slot and slot.use and slot.texture.type == IMAGE:
if (slot and slot.use and
slot.texture and slot.texture.type == IMAGE):
yield slot.texture.name
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册