pep8 cleanup and fix for keymap test operator from my own recent fix.

This commit is contained in:
Campbell Barton
2011-09-26 15:39:15 +00:00
parent dc19877a09
commit 8a423f59ea
8 changed files with 37 additions and 24 deletions

View File

@@ -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()