Fixed Y and Z being flipped also.

master
TigerKat 4 years ago
parent 899fe33e91
commit 7d64e65e7c

@ -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, ))

Loading…
Cancel
Save