Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2016-02-17 15:28:28 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2016-02-17 15:28:28 +0300
commit219e882b3168669bb733dafcce10bb79d90e8002 (patch)
treecae33f5758292eadbe65a35f91470f8f59f798bf /io_scene_fbx/fbx_utils.py
parentda3be8b8f3156c377d3c9de24290583405417803 (diff)
Fix T47457: FBX export: Force full keying in case Simplify factor is set to 0.0
Note that it will export all sampled values - even for actually non-animated channels, not really possible to avoid that without a hell lot more of code, and this rea is convoluted enough right now.
Diffstat (limited to 'io_scene_fbx/fbx_utils.py')
-rw-r--r--io_scene_fbx/fbx_utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/io_scene_fbx/fbx_utils.py b/io_scene_fbx/fbx_utils.py
index ee91a1db..53a540ee 100644
--- a/io_scene_fbx/fbx_utils.py
+++ b/io_scene_fbx/fbx_utils.py
@@ -775,6 +775,9 @@ class AnimationCurveNodeWrapper:
if not self._keys:
return
+ if fac == 0.0:
+ return
+
# So that, with default factor and step values (1), we get:
min_reldiff_fac = fac * 1.0e-3 # min relative value evolution: 0.1% of current 'order of magnitude'.
min_absdiff_fac = 0.1 # A tenth of reldiff...