diff --git a/io_export_unreal_psk_psa.py b/io_export_unreal_psk_psa.py index 4d7f65cb3f8a1f25f7bc8e48d5617bd2435458e3..0c7f6dd7d2478939936ce6747bc28318ba6c3192 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)