diff options
author | Joshua Leung <aligorith@gmail.com> | 2010-04-06 14:07:24 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2010-04-06 14:07:24 +0400 |
commit | 2275b69ff894c8a7e319d9807da387a2dc4ad169 (patch) | |
tree | 458b7199047515d4916dd63ff8f214fa0fa07021 /release/scripts | |
parent | 268e057e78ba95ecf97509c9fd77366b660ecafe (diff) |
Quick fix to NLA-Baking for Beorn:
Group baked F-Curves by bones instead of by transform type.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/op/nla.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/release/scripts/op/nla.py b/release/scripts/op/nla.py index b362798a91d..062d699ab88 100644 --- a/release/scripts/op/nla.py +++ b/release/scripts/op/nla.py @@ -110,18 +110,18 @@ def bake(frame_start, frame_end, step=1, only_selected=False): #pbone.rotation_quaternion = matrix.to_quat() pbone.matrix_local = [f for v in matrix for f in v] - pbone.keyframe_insert("location", -1, f, "Location") + pbone.keyframe_insert("location", -1, f, name) rotation_mode = pbone.rotation_mode if rotation_mode == 'QUATERNION': - pbone.keyframe_insert("rotation_quaternion", -1, f, "Rotation") + pbone.keyframe_insert("rotation_quaternion", -1, f, name) elif rotation_mode == 'AXIS_ANGLE': - pbone.keyframe_insert("rotation_axis_angle", -1, f, "Rotation") + pbone.keyframe_insert("rotation_axis_angle", -1, f, name) else: # euler, XYZ, ZXY etc - pbone.keyframe_insert("rotation_euler", -1, f, "Rotation") + pbone.keyframe_insert("rotation_euler", -1, f, name) - pbone.keyframe_insert("scale", -1, f, "Scale") + pbone.keyframe_insert("scale", -1, f, name) return action |