From f61def92ef317d34c7f463c2875e8382e6e21314 Mon Sep 17 00:00:00 2001
From: John Phan <darkneter@gmail.com>
Date: Wed, 16 Feb 2011 05:35:49 +0000
Subject: [PATCH] fixed material id.

---
 io_export_unreal_psk_psa.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/io_export_unreal_psk_psa.py b/io_export_unreal_psk_psa.py
index 547b7d9be..1fd4ff7ff 100644
--- a/io_export_unreal_psk_psa.py
+++ b/io_export_unreal_psk_psa.py
@@ -17,7 +17,7 @@
 
 bl_info = {
     "name": "Export Skeleletal Mesh/Animation Data",
-    "author": "Darknet/Optimus_P-Fat/Active_Trash/Sinsoft",
+    "author": "Darknet/Optimus_P-Fat/Active_Trash/Sinsoft/VendorX",
     "version": (2, 0),
     "blender": (2, 5, 6),
     "api": 31847,
@@ -706,6 +706,8 @@ def parse_meshes(blender_meshes, psk_file):
         for current_face in current_mesh.faces:
             #print ' -- Dumping UVs -- '
             #print current_face.uv_textures
+            # modified by VendorX
+            object_material_index = current_face.material_index
             
             if len(current_face.vertices) != 3:
                 raise RuntimeError("Non-triangular face (%i)" % len(current_face.vertices))
-- 
GitLab