diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-28 08:42:28 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-28 08:42:28 +0400 |
commit | 43e4ff490d9e0d3700cf168c33f70404186408d2 (patch) | |
tree | a7334b12959a9af3ed04c417069ad65456b7f0a4 /io_scene_x3d/import_x3d.py | |
parent | d8021c611ee4dc42ee1ac6459fb7ece0c7c8d3d1 (diff) |
fix [#32615] VRML Import has incorrect texture coordinates
Diffstat (limited to 'io_scene_x3d/import_x3d.py')
-rw-r--r-- | io_scene_x3d/import_x3d.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py index 78b8efb8..cbc11c5c 100644 --- a/io_scene_x3d/import_x3d.py +++ b/io_scene_x3d/import_x3d.py @@ -1578,7 +1578,8 @@ def importMesh_IndexedFaceSet(geom, bpyima, ancestry): coords_tex = geom.getChildBySpec('TextureCoordinate') if coords_tex: - ifs_texpoints = coords_tex.getFieldAsArray('point', 2, ancestry) + ifs_texpoints = [(0, 0)] # EEKADOODLE - vertex start at 1 + ifs_texpoints.extend(coords_tex.getFieldAsArray('point', 2, ancestry)) ifs_texfaces = geom.getFieldAsArray('texCoordIndex', 0, ancestry) if not ifs_texpoints: |