[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4276] trunk/py/scripts/addons/ io_scene_obj/export_obj.py: add check for 'None' textures

Campbell Barton ideasman42 at gmail.com
Fri Feb 15 11:46:36 CET 2013


Revision: 4276
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4276
Author:   campbellbarton
Date:     2013-02-15 10:46:36 +0000 (Fri, 15 Feb 2013)
Log Message:
-----------
add check for 'None' textures

Modified Paths:
--------------
    trunk/py/scripts/addons/io_scene_obj/export_obj.py

Modified: trunk/py/scripts/addons/io_scene_obj/export_obj.py
===================================================================
--- trunk/py/scripts/addons/io_scene_obj/export_obj.py	2013-02-15 10:15:04 UTC (rev 4275)
+++ trunk/py/scripts/addons/io_scene_obj/export_obj.py	2013-02-15 10:46:36 UTC (rev 4276)
@@ -124,7 +124,7 @@
             image_map = {}
             # backwards so topmost are highest priority
             for mtex in reversed(mat.texture_slots):
-                if mtex and mtex.texture.type == 'IMAGE':
+                if mtex and mtex.texture and mtex.texture.type == 'IMAGE':
                     image = mtex.texture.image
                     if image:
                         # texface overrides others



More information about the Bf-extensions-cvs mailing list