Revision: 19703
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=19703
Author:   campbellbarton
Date:     2009-04-13 08:50:02 +0200 (Mon, 13 Apr 2009)

Log Message:
-----------
[#18329] VRML import on indexedfaceset munges some colors (off by one)
Thanks to Ezra Peisach for including a patch in the report.

Modified Paths:
--------------
    trunk/blender/release/scripts/import_web3d.py

Modified: trunk/blender/release/scripts/import_web3d.py
===================================================================
--- trunk/blender/release/scripts/import_web3d.py       2009-04-13 04:54:12 UTC 
(rev 19702)
+++ trunk/blender/release/scripts/import_web3d.py       2009-04-13 06:50:02 UTC 
(rev 19703)
@@ -1566,7 +1566,8 @@
        vcolor_spot = None # spot color when we dont have an array of colors
        if vcolor:
                # float to char
-               ifs_vcol = [[int(c*256) for c in col] for col in 
vcolor.getFieldAsArray('color', 3, ancestry)]
+               ifs_vcol = [(0,0,0)] # EEKADOODLE - vertex start at 1
+               ifs_vcol.extend([[int(c*256) for c in col] for col in 
vcolor.getFieldAsArray('color', 3, ancestry)])
                ifs_color_index = geom.getFieldAsArray('colorIndex', 0, 
ancestry)
                
                if not ifs_vcol:


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to