diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-07-19 13:56:17 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-07-19 16:40:53 +0300 |
commit | 9c2c5413b26d7664b780ef42c21eea7826c6dc5f (patch) | |
tree | 2a17dda6bdb2d86bb1615b65d0770be4b27a964e /io_scene_fbx/__init__.py | |
parent | 8e62ba483ef5e56667f1601b9f7c08a58a5ba986 (diff) |
Fix T45487: fbx exporting weird keyframes.
Previous 'simplifying' code was not handling correctly micro-fluctuations around zero
(caused by ugly float precision issues). Rewrote it more or less completely,
new code is simpler and only based on relative difference (by default, it
keys each time the diff is above 1e-4, and above 1e-4 * magnitude_of_values).
Might produce more keys in some cases, but at least 'noise' shall never be
exported again.
Diffstat (limited to 'io_scene_fbx/__init__.py')
-rw-r--r-- | io_scene_fbx/__init__.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py index 119e8edc..243c9a2e 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": (3, 5, 1), + "version": (3, 5, 2), "blender": (2, 74, 0), "location": "File > Import-Export", "description": "FBX IO meshes, UV's, vertex colors, materials, textures, cameras, lamps and actions", @@ -409,7 +409,8 @@ class ExportFBX(bpy.types.Operator, ExportHelper, IOFBXOrientationHelper): bake_anim_simplify_factor = FloatProperty( name="Simplify", description="How much to simplify baked values (0.0 to disable, the higher the more simplified)", - min=0.0, max=10.0, # No simplification to up to 0.05 slope/100 max_frame_step. + min=0.0, max=100.0, # No simplification to up to 10% of current magnitude tolerance. + soft_min=0.0, soft_max=10.0, default=1.0, # default: min slope: 0.005, max frame step: 10. ) # Anim - 6.1 |