[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4362] trunk/py/scripts/addons/ io_scene_x3d/import_x3d.py: fix for importing face colors

Campbell Barton ideasman42 at gmail.com
Tue Mar 12 08:21:21 CET 2013


Revision: 4362
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4362
Author:   campbellbarton
Date:     2013-03-12 07:21:20 +0000 (Tue, 12 Mar 2013)
Log Message:
-----------
fix for importing face colors

Modified Paths:
--------------
    trunk/py/scripts/addons/io_scene_x3d/import_x3d.py

Modified: trunk/py/scripts/addons/io_scene_x3d/import_x3d.py
===================================================================
--- trunk/py/scripts/addons/io_scene_x3d/import_x3d.py	2013-03-12 06:59:38 UTC (rev 4361)
+++ trunk/py/scripts/addons/io_scene_x3d/import_x3d.py	2013-03-12 07:21:20 UTC (rev 4362)
@@ -1824,6 +1824,8 @@
                             color_index = 0
                         else:
                             color_index = ifs_color_index[color_index]
+                    # skip eedadoodle vert
+                    color_index += 1
                     try:
                         col = ifs_vcol[color_index]
                     except IndexError:
@@ -2110,7 +2112,7 @@
                     else:
                         ima_urls = [ima_urls]
                 # ima_urls is a list or None
-                        
+
                 if ima_urls is None:
                     print("\twarning, image with no URL, this is odd")
                 else:
@@ -2129,7 +2131,7 @@
                             image_depth = bpyima.depth
                         except:
                             image_depth = -1
-                        
+
                         mtex = bpymat.texture_slots.add()
                         mtex.texture = texture
 



More information about the Bf-extensions-cvs mailing list