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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-09-26 19:39:15 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-09-26 19:39:15 +0400
commit8a423f59ea123948383f024695bf058213169d82 (patch)
tree9ea31963eb9921ac66838ea3724732a8aa05c3c9 /release/scripts/modules
parentdc19877a09e307b91378565cca6e42aca6f68d9e (diff)
pep8 cleanup and fix for keymap test operator from my own recent fix.
Diffstat (limited to 'release/scripts/modules')
-rw-r--r--release/scripts/modules/bpy_extras/anim_utils.py6
-rw-r--r--release/scripts/modules/bpy_extras/keyconfig_utils.py2
2 files changed, 4 insertions, 4 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()
diff --git a/release/scripts/modules/bpy_extras/keyconfig_utils.py b/release/scripts/modules/bpy_extras/keyconfig_utils.py
index 081b0780622..e87db659918 100644
--- a/release/scripts/modules/bpy_extras/keyconfig_utils.py
+++ b/release/scripts/modules/bpy_extras/keyconfig_utils.py
@@ -218,7 +218,7 @@ def keyconfig_export(wm, kc, filepath):
def keyconfig_test(kc):
- def testEntry(self, kc, entry, src=None, parent=None):
+ def testEntry(kc, entry, src=None, parent=None):
result = False
def kmistr(kmi):