[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34245] branches/blender2.4/release/ scripts/import_web3d.py: x3d/ vrml import fix for bad comparison with vertex color index.
Campbell Barton
ideasman42 at gmail.com
Tue Jan 11 05:22:00 CET 2011
Revision: 34245
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=34245
Author: campbellbarton
Date: 2011-01-11 04:21:59 +0000 (Tue, 11 Jan 2011)
Log Message:
-----------
x3d/vrml import fix for bad comparison with vertex color index.
Modified Paths:
--------------
branches/blender2.4/release/scripts/import_web3d.py
Modified: branches/blender2.4/release/scripts/import_web3d.py
===================================================================
--- branches/blender2.4/release/scripts/import_web3d.py 2011-01-11 03:22:37 UTC (rev 34244)
+++ branches/blender2.4/release/scripts/import_web3d.py 2011-01-11 04:21:59 UTC (rev 34245)
@@ -1774,7 +1774,7 @@
color_index = faces_orig_index[f.index] # color index is face index
#print color_index, ifs_color_index
if ifs_color_index:
- if color_index <= len(ifs_color_index):
+ if color_index >= len(ifs_color_index):
print '\tWarning: per face color index out of range'
color_index = 0
else:
More information about the Bf-blender-cvs
mailing list