From 43e4ff490d9e0d3700cf168c33f70404186408d2 Mon Sep 17 00:00:00 2001
From: Campbell Barton <ideasman42@gmail.com>
Date: Fri, 28 Sep 2012 04:42:28 +0000
Subject: [PATCH] fix [#32615] VRML Import has incorrect texture coordinates

---
 io_scene_x3d/import_x3d.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py
index 78b8efb84..cbc11c5cc 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:
-- 
GitLab