From dcfc397421c984d5caf515d36a4b740178120ad7 Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Thu, 23 Jul 2020 11:21:11 +0800 Subject: [PATCH] fix fatal face export error --- ballance_blender_plugin/bm_import_export.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ballance_blender_plugin/bm_import_export.py b/ballance_blender_plugin/bm_import_export.py index 93054ee..778e1af 100644 --- a/ballance_blender_plugin/bm_import_export.py +++ b/ballance_blender_plugin/bm_import_export.py @@ -359,6 +359,6 @@ def write_3vector(fs, x, y ,z): def write_2vector(fs, u, v): fs.write(struct.pack("ff", u, v)) -def write_face(fs, v1, vn1, vt1, v2, vn2, vt2, v3, vn3, vt3): - fs.write(struct.pack("IIIIIIIII", v1, vn1, vt1, v2, vn2, vt2, v3, vn3, vt3)) +def write_face(fs, v1, vt1, vn1, v2, vt2, vn2, v3, vt3, vn3): + fs.write(struct.pack("IIIIIIIII", v1, vt1, vn1, v2, vt2, vn2, v3, vt3, vn3))