From 7d64e65e7c71acd0cb57dcfc4923785de6d8315b Mon Sep 17 00:00:00 2001 From: TigerKat Date: Wed, 27 Jan 2021 10:58:33 +0930 Subject: [PATCH] Fixed Y and Z being flipped also. --- export_geo.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/export_geo.py b/export_geo.py index 5129c39..f12640f 100644 --- a/export_geo.py +++ b/export_geo.py @@ -112,13 +112,20 @@ def save(operator, context, scale = 1.0, filepath = "", global_matrix = None, us body_name = bpy.path.display_name_from_filepath(filepath) geo.setName(body_name) + #print("AXIS_ROTATION") #axis_rotation = axis_conversion('-Y', 'Z', 'Z', 'Y') + #print("%s" % (axis_rotation, )) + #print("AXIS_ROTATION") #axis_rotation = axis_conversion('Y', 'Z', '-Z', 'Y') + #print("%s" % (axis_rotation, )) + #print("AXIS_ROTATION") axis_rotation = mathutils.Matrix([ [-1, 0, 0], - [0, 0, -1], - [0, 1, 0], + [0, 0, 1], + [0, -1, 0], ]) + #print("%s" % (axis_rotation, )) + #print("AXIS_ROTATION") axis_rotation.resize_4x4() print("scale: %s" % (scale, ))