[#18323] VRML import will not import colors if pervertexcolors set (comparison reversed)
thanks to Ezra Peisach for fixing.
This commit is contained in:
@@ -1758,7 +1758,7 @@ def importMesh_IndexedFaceSet(geom, bpyima, ancestry):
|
|||||||
print '\tWarning: per vertex color index out of range'
|
print '\tWarning: per vertex color index out of range'
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if len(ifs_vcol) < color_index:
|
if color_index < len(ifs_vcol):
|
||||||
c.r, c.g, c.b = ifs_vcol[color_index]
|
c.r, c.g, c.b = ifs_vcol[color_index]
|
||||||
else:
|
else:
|
||||||
#print '\tWarning: per face color index out of range'
|
#print '\tWarning: per face color index out of range'
|
||||||
|
|||||||
Reference in New Issue
Block a user