[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1129] trunk/py/scripts/addons/ render_povray/render.py: ignore None image textures
Campbell Barton
ideasman42 at gmail.com
Wed Oct 27 23:55:02 CEST 2010
Revision: 1129
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=1129
Author: campbellbarton
Date: 2010-10-27 23:55:01 +0200 (Wed, 27 Oct 2010)
Log Message:
-----------
ignore None image textures
Modified Paths:
--------------
trunk/py/scripts/addons/render_povray/render.py
Modified: trunk/py/scripts/addons/render_povray/render.py
===================================================================
--- trunk/py/scripts/addons/render_povray/render.py 2010-10-27 20:41:14 UTC (rev 1128)
+++ trunk/py/scripts/addons/render_povray/render.py 2010-10-27 21:55:01 UTC (rev 1129)
@@ -858,7 +858,7 @@
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:
More information about the Bf-extensions-cvs
mailing list