diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-09-26 19:39:15 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-09-26 19:39:15 +0400 |
commit | 8a423f59ea123948383f024695bf058213169d82 (patch) | |
tree | 9ea31963eb9921ac66838ea3724732a8aa05c3c9 /release/scripts/modules/bpy_extras/anim_utils.py | |
parent | dc19877a09e307b91378565cca6e42aca6f68d9e (diff) |
pep8 cleanup and fix for keymap test operator from my own recent fix.
Diffstat (limited to 'release/scripts/modules/bpy_extras/anim_utils.py')
-rw-r--r-- | release/scripts/modules/bpy_extras/anim_utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/modules/bpy_extras/anim_utils.py b/release/scripts/modules/bpy_extras/anim_utils.py index 9482dc3e1c9..9848586a144 100644 --- a/release/scripts/modules/bpy_extras/anim_utils.py +++ b/release/scripts/modules/bpy_extras/anim_utils.py @@ -59,7 +59,7 @@ def bake_action(frame_start, :arg action: An action to bake the data into, or None for a new action to be created. :type action: :class:`bpy.types.Action` or None - + :return: an action or None :rtype: :class:`bpy.types.Action` """ @@ -115,7 +115,6 @@ def bake_action(frame_start, return info - def obj_frame_info(obj): info = {} # parent = obj.parent @@ -183,7 +182,8 @@ def bake_action(frame_start, pbone.constraints.remove(pbone.constraints[0]) for f in frame_range: - matrix = pose_info[(f - frame_start) // frame_step][name]["matrix_key"] + f_step = (f - frame_start) // frame_step + matrix = pose_info[f_step][name]["matrix_key"] # pbone.location = matrix.to_translation() # pbone.rotation_quaternion = matrix.to_quaternion() |