Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-10-28 01:55:01 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-10-28 01:55:01 +0400
commit08167bf8debc268ad4fbcef5e0c84f5f5c77a908 (patch)
tree209f75e19905ee18026b8a0e8bef08adf75d9c51 /render_povray
parentce99355030e11f5bf8b74b7252990f589dc9c71e (diff)
ignore None image textures
Diffstat (limited to 'render_povray')
-rw-r--r--render_povray/render.py2
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: