Skip to content
Snippets Groups Projects
Commit 43e4ff49 authored by Campbell Barton's avatar Campbell Barton
Browse files

fix [#32615] VRML Import has incorrect texture coordinates

parent d8021c61
No related branches found
No related tags found
No related merge requests found
...@@ -1578,7 +1578,8 @@ def importMesh_IndexedFaceSet(geom, bpyima, ancestry): ...@@ -1578,7 +1578,8 @@ def importMesh_IndexedFaceSet(geom, bpyima, ancestry):
coords_tex = geom.getChildBySpec('TextureCoordinate') coords_tex = geom.getChildBySpec('TextureCoordinate')
if coords_tex: 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) ifs_texfaces = geom.getFieldAsArray('texCoordIndex', 0, ancestry)
if not ifs_texpoints: if not ifs_texpoints:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment