Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-02-23 15:17:34 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-02-23 15:17:34 +0300
commit373d4fe6d3c49dae35c05d7c06df4d1d0b56f62d (patch)
tree7de474b985d073e91100481dd5a10c449bd1d3a9 /release
parent5488175d0bc79b07fd3fb0f279323b4f33487b5f (diff)
[#18323] VRML import will not import colors if pervertexcolors set (comparison reversed)
thanks to Ezra Peisach for fixing.
Diffstat (limited to 'release')
-rwxr-xr-xrelease/scripts/import_web3d.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/import_web3d.py b/release/scripts/import_web3d.py
index 28bc1a40ef0..87a259cbe56 100755
--- a/release/scripts/import_web3d.py
+++ b/release/scripts/import_web3d.py
@@ -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'