From da4f07f37a81c58b55940663c5155fca6d3f9ec7 Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Thu, 6 Aug 2020 14:43:31 +0800 Subject: [PATCH] add smooth feature --- ballance_blender_plugin/bm_import_export.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ballance_blender_plugin/bm_import_export.py b/ballance_blender_plugin/bm_import_export.py index bd218e4..f1efee9 100644 --- a/ballance_blender_plugin/bm_import_export.py +++ b/ballance_blender_plugin/bm_import_export.py @@ -241,6 +241,8 @@ def import_bm(context,filepath,externalTexture,blenderTempFolder): mesh.polygons[i].loop_total = 3 if faceList[i][9] != -1: mesh.polygons[i].material_index = faceList[i][9] + + mesh.polygons[i].use_smooth = True mesh.validate(clean_customdata=False) mesh.update(calc_edges=False, calc_edges_loose=False)