From 0e4a36c66512b173b03d76ba5f158dd6e6976b83 Mon Sep 17 00:00:00 2001 From: John Phan <darkneter@gmail.com> Date: Sat, 2 Oct 2010 04:06:09 +0000 Subject: [PATCH] Added smooth group. --- io_export_unreal_psk_psa.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/io_export_unreal_psk_psa.py b/io_export_unreal_psk_psa.py index 4d7f65cb3..0c7f6dd7d 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) -- GitLab