From b80e15cba6cd5b6309e01ec76ef9f909ef34e3c5 Mon Sep 17 00:00:00 2001
From: Chris Foster <cdbfoster@gmail.com>
Date: Mon, 15 Apr 2013 18:39:46 +0000
Subject: [PATCH] Fixed silly smooth normals export bug.

---
 io_scene_x/export_x.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/io_scene_x/export_x.py b/io_scene_x/export_x.py
index 75fbf5659..56d8a27a7 100644
--- a/io_scene_x/export_x.py
+++ b/io_scene_x/export_x.py
@@ -531,8 +531,8 @@ class MeshExportObject(ExportObject):
                             tuple(len(Polygon.vertices) * [Index]))
                         Index += 1
                     else:
-                        for Vertex in Polygon.vertices:
-                            self.vertices.append(Vertex)
+                        for VertexIndex in Polygon.vertices:
+                            self.vertices.append(Mesh.vertices[VertexIndex])
                         self.PolygonVertexIndexes.append(
                             tuple(range(Index, Index + len(Polygon.vertices))))
                         Index += len(Polygon.vertices)            
-- 
GitLab