From eae792d174fb48814f42fd5eb16258ad60c25e23 Mon Sep 17 00:00:00 2001 From: Campbell Barton <ideasman42@gmail.com> Date: Mon, 25 Feb 2013 12:14:39 +0000 Subject: [PATCH] fix for off-by-one error on X3D import --- io_scene_x3d/import_x3d.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py index 6472f6541..7b18fda9a 100644 --- a/io_scene_x3d/import_x3d.py +++ b/io_scene_x3d/import_x3d.py @@ -1701,7 +1701,7 @@ def importMesh_IndexedFaceSet(geom, bpyima, ancestry): for j, uv in enumerate(f.uv): # print(fuv, j, len(ifs_texpoints)) try: - f.uv[j] = ifs_texpoints[fuv[j]] # XXX25, speedup + f.uv[j] = ifs_texpoints[fuv[j] + 1] # XXX25, speedup except: print('\tWarning: UV Index out of range') f.uv[j] = ifs_texpoints[0] # XXX25, speedup -- GitLab