提交 67cc2780 编写于 作者: R Ricardo Cabello

Merge pull request #6541 from tschw/Blender_misc_fixes

Blender: Avoid obscure error on certain non-image textures.
......@@ -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.
先完成此消息的编辑!
想要评论请 注册