Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Phan <darkneter@gmail.com>2011-02-16 08:35:49 +0300
committerJohn Phan <darkneter@gmail.com>2011-02-16 08:35:49 +0300
commitf61def92ef317d34c7f463c2875e8382e6e21314 (patch)
treea35953c79bed749d68953a25e714382efed2492d /io_export_unreal_psk_psa.py
parent14799684f0172d844199514a4151e6ab6e15a0e5 (diff)
fixed material id.
Diffstat (limited to 'io_export_unreal_psk_psa.py')
-rw-r--r--io_export_unreal_psk_psa.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/io_export_unreal_psk_psa.py b/io_export_unreal_psk_psa.py
index 547b7d9b..1fd4ff7f 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))