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>2010-10-02 08:06:09 +0400
committerJohn Phan <darkneter@gmail.com>2010-10-02 08:06:09 +0400
commit0e4a36c66512b173b03d76ba5f158dd6e6976b83 (patch)
tree3825f2d008eef43143afe71e78a337cde85a46d8 /io_export_unreal_psk_psa.py
parent6bc06c10938a6b3adb18b067b984d3dcbdde2a66 (diff)
Added smooth group.
Diffstat (limited to 'io_export_unreal_psk_psa.py')
-rw-r--r--io_export_unreal_psk_psa.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/io_export_unreal_psk_psa.py b/io_export_unreal_psk_psa.py
index 4d7f65cb..0c7f6dd7 100644
--- a/io_export_unreal_psk_psa.py
+++ b/io_export_unreal_psk_psa.py
@@ -851,8 +851,17 @@ def parse_meshes(blender_meshes, psk_file):
dindex1 = current_face.vertices[1];
dindex2 = current_face.vertices[2];
raise RuntimeError("normal vector coplanar with face! points:", current_mesh.vertices[dindex0].co, current_mesh.vertices[dindex1].co, current_mesh.vertices[dindex2].co)
+ #print((current_face.use_smooth))
+ #not sure if this right
+ #tri.SmoothingGroups
+ if current_face.use_smooth == True:
+ tri.SmoothingGroups = 1
+ else:
+ tri.SmoothingGroups = 0
tri.MatIndex = object_material_index
+
+
#print(tri)
psk_file.AddFace(tri)