diff options
Diffstat (limited to 'io_scene_fbx')
-rw-r--r-- | io_scene_fbx/__init__.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py index e5fa3284..71ae6ec3 100644 --- a/io_scene_fbx/__init__.py +++ b/io_scene_fbx/__init__.py @@ -21,7 +21,7 @@ bl_info = { "name": "FBX format", "author": "Campbell Barton, Bastien Montagne, Jens Restemeier", - "version": (4, 21, 3), + "version": (4, 22, 0), "blender": (2, 90, 0), "location": "File > Import-Export", "description": "FBX IO meshes, UV's, vertex colors, materials, textures, cameras, lamps and actions", @@ -426,6 +426,13 @@ class ExportFBX(bpy.types.Operator, ExportHelper): "(Blender uses FBX scale to detect units on import, " "but many other applications do not handle the same way)", ) + + use_space_transform: BoolProperty( + name="Use Space Transform", + description="Apply global space transform to the object rotations. When disabled " + "only the axis space is written to the file and all object transforms are left as-is", + default=True, + ) bake_space_transform: BoolProperty( name="Apply Transform", description="Bake space transform into object data, avoids getting unwanted rotations to objects when " @@ -623,7 +630,8 @@ class ExportFBX(bpy.types.Operator, ExportHelper): global_matrix = (axis_conversion(to_forward=self.axis_forward, to_up=self.axis_up, - ).to_4x4()) + ).to_4x4() + if self.use_space_transform else Matrix()) keywords = self.as_keywords(ignore=("check_existing", "filter_glob", @@ -727,6 +735,7 @@ class FBX_PT_export_transform(bpy.types.Panel): layout.prop(operator, "axis_up") layout.prop(operator, "apply_unit_scale") + layout.prop(operator, "use_space_transform") row = layout.row() row.prop(operator, "bake_space_transform") row.label(text="", icon='ERROR') |