[Bf-extensions-cvs] [3d0f53c] master: Fix T45426: fbx exporting animation of 'noise' produced by float precision error.

Bastien Montagne noreply at git.blender.org
Tue Jul 14 20:52:39 CEST 2015


Commit: 3d0f53c1d65f3a55d108f25b1ee8f391ef323910
Author: Bastien Montagne
Date:   Tue Jul 14 20:49:48 2015 +0200
Branches: master
https://developer.blender.org/rBA3d0f53c1d65f3a55d108f25b1ee8f391ef323910

Fix T45426: fbx exporting animation of 'noise' produced by float precision error.

Looks like our absolute max diff in animation simplification process was a bit too low,
raised it from 1e-6 to 1e-5, fixes the issue in reported file at least.

===================================================================

M	io_scene_fbx/__init__.py
M	io_scene_fbx/fbx_utils.py

===================================================================

diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py
index 0259bbd..da4a423 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, 4, 6),
+    "version": (3, 4, 7),
     "blender": (2, 74, 0),
     "location": "File > Import-Export",
     "description": "FBX IO meshes, UV's, vertex colors, materials, textures, cameras, lamps and actions",
diff --git a/io_scene_fbx/fbx_utils.py b/io_scene_fbx/fbx_utils.py
index 4df6877..cb761dd 100644
--- a/io_scene_fbx/fbx_utils.py
+++ b/io_scene_fbx/fbx_utils.py
@@ -777,7 +777,7 @@ class AnimationCurveNodeWrapper:
         # So that, with default factor and step values (1), we get:
         max_frame_diff = step * fac * 10  # max step of 10 frames.
         value_diff_fac = fac / 1000  # min value evolution: 0.1% of whole range.
-        min_significant_diff = 1.0e-6
+        min_significant_diff = 1.0e-5
         keys = self._keys
 
         extremums = tuple((min(values), max(values)) for values in zip(*(k[1] for k in keys)))



More information about the Bf-extensions-cvs mailing list