[#18323] VRML import will not import colors if pervertexcolors set (comparison reversed)

thanks to Ezra Peisach for fixing.
This commit is contained in:
Campbell Barton 2009-02-23 12:17:34 +00:00
parent 5488175d0b
commit 373d4fe6d3

@ -1758,7 +1758,7 @@ def importMesh_IndexedFaceSet(geom, bpyima, ancestry):
print '\tWarning: per vertex color index out of range'
continue
if len(ifs_vcol) < color_index:
if color_index < len(ifs_vcol):
c.r, c.g, c.b = ifs_vcol[color_index]
else:
#print '\tWarning: per face color index out of range'