From 08167bf8debc268ad4fbcef5e0c84f5f5c77a908 Mon Sep 17 00:00:00 2001 From: Campbell Barton <ideasman42@gmail.com> Date: Wed, 27 Oct 2010 21:55:01 +0000 Subject: [PATCH] ignore None image textures --- render_povray/render.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render_povray/render.py b/render_povray/render.py index 2c5133580..2ecd537d6 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: -- GitLab