[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4353] trunk/py/scripts/addons/ io_mesh_vrml2/export_vrml2.py: very stupid mistake.

Campbell Barton ideasman42 at gmail.com
Mon Mar 11 14:01:31 CET 2013


Revision: 4353
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4353
Author:   campbellbarton
Date:     2013-03-11 13:01:31 +0000 (Mon, 11 Mar 2013)
Log Message:
-----------
very stupid mistake. fix material checking.

Modified Paths:
--------------
    trunk/py/scripts/addons/io_mesh_vrml2/export_vrml2.py

Modified: trunk/py/scripts/addons/io_mesh_vrml2/export_vrml2.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_vrml2/export_vrml2.py	2013-03-11 12:52:38 UTC (rev 4352)
+++ trunk/py/scripts/addons/io_mesh_vrml2/export_vrml2.py	2013-03-11 13:01:31 UTC (rev 4353)
@@ -139,7 +139,7 @@
     for m in obj.data.materials:
         if m is not None:
             # backwards so topmost are highest priority
-            for mtex in reversed(mat.texture_slots):
+            for mtex in reversed(m.texture_slots):
                 if mtex and mtex.use_map_color_diffuse:
                     texture = mtex.texture
                     if texture and texture.type == 'IMAGE':



More information about the Bf-extensions-cvs mailing list