diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-02-23 15:17:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-02-23 15:17:34 +0300 |
commit | 373d4fe6d3c49dae35c05d7c06df4d1d0b56f62d (patch) | |
tree | 7de474b985d073e91100481dd5a10c449bd1d3a9 /release/scripts/import_web3d.py | |
parent | 5488175d0bc79b07fd3fb0f279323b4f33487b5f (diff) |
[#18323] VRML import will not import colors if pervertexcolors set (comparison reversed)
thanks to Ezra Peisach for fixing.
Diffstat (limited to 'release/scripts/import_web3d.py')
-rwxr-xr-x | release/scripts/import_web3d.py | 2 |
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' |