[Bf-extensions-cvs] [5e6bebf2] master: Revert "FBX Exporter: Support special case of constant interpolation"
Dalai Felinto
noreply at git.blender.org
Thu Feb 28 19:46:55 CET 2019
Commit: 5e6bebf292a6bdbc38b353913a38e88a40e3fe55
Author: Dalai Felinto
Date: Thu Feb 28 18:43:14 2019 +0000
Branches: master
https://developer.blender.org/rBA5e6bebf292a6bdbc38b353913a38e88a40e3fe55
Revert "FBX Exporter: Support special case of constant interpolation"
This reverts commit 96a51679699c75e1a08f2d91b2b055bf6430e9d1.
My tests fail to test this properly. They key elements here are not
Blender's keyframes. I need to tackle this differently.
===================================================================
M io_scene_fbx/export_fbx_bin.py
===================================================================
diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py
index 63d67d4a..5ecc8706 100644
--- a/io_scene_fbx/export_fbx_bin.py
+++ b/io_scene_fbx/export_fbx_bin.py
@@ -1706,18 +1706,11 @@ def fbx_data_animation_elements(root, scene_data):
acurve.add_string(fbx_name_class(b"", b"AnimCurve"))
acurve.add_string(b"")
- # special case, if all keys are constant, set const interpolation mode
- constant = True
- for key in keys:
- if key.interpolation != 'CONSTANT':
- constant = False
- break
-
# key attributes...
nbr_keys = len(keys)
# flags...
keyattr_flags = (
- 1 << (1 if constant else 2) | # interpolation mode, 1 = constant, 2 = linear, 3 = cubic.
+ 1 << 2 | # interpolation mode, 1 = constant, 2 = linear, 3 = cubic.
1 << 8 | # tangent mode, 8 = auto, 9 = TCB, 10 = user, 11 = generic break,
1 << 13 | # tangent mode, 12 = generic clamp, 13 = generic time independent,
1 << 14 | # tangent mode, 13 + 14 = generic clamp progressive.
More information about the Bf-extensions-cvs
mailing list