diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-10-28 01:55:01 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-10-28 01:55:01 +0400 |
commit | 08167bf8debc268ad4fbcef5e0c84f5f5c77a908 (patch) | |
tree | 209f75e19905ee18026b8a0e8bef08adf75d9c51 /render_povray | |
parent | ce99355030e11f5bf8b74b7252990f589dc9c71e (diff) |
ignore None image textures
Diffstat (limited to 'render_povray')
-rw-r--r-- | render_povray/render.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/render_povray/render.py b/render_povray/render.py index 2c513358..2ecd537d 100644 --- a/render_povray/render.py +++ b/render_povray/render.py @@ -858,7 +858,7 @@ def write_pov(filename, scene=None, info_callback=None): texturesNorm='' texturesAlpha='' for t in material.texture_slots: - if t and t.texture.type == 'IMAGE' and t.use: + if t and t.texture.type == 'IMAGE' and t.use and t.texture.image: image_filename = path_image(t.texture.image.filepath) if t.texture.image.filepath != image_filename: t.texture.image.filepath = image_filename if image_filename != '' and t.use_map_color_diffuse: |