diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-08-25 16:55:14 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-08-25 16:55:14 +0400 |
commit | 71d1b09708f742ee084c498ae031a1c7da6d6328 (patch) | |
tree | ac303322eeec8dde4723658a72a96e4c6b996ba0 /release/scripts/modules/bpy_extras | |
parent | 179ac9ebc0c47ca0f0f068a6258ec16ed787db4b (diff) |
minor code cleanup
Diffstat (limited to 'release/scripts/modules/bpy_extras')
-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 0ef310dd16a..b8d08628de4 100644 --- a/release/scripts/modules/bpy_extras/anim_utils.py +++ b/release/scripts/modules/bpy_extras/anim_utils.py @@ -68,7 +68,7 @@ def bake_action(frame_start, # Helper Functions def pose_frame_info(obj): - from mathutils import Matrix, Euler + from mathutils import Matrix info = {} @@ -201,14 +201,14 @@ def bake_action(frame_start, elif rotation_mode == 'AXIS_ANGLE': pbone.keyframe_insert("rotation_axis_angle", -1, f, name) else: # euler, XYZ, ZXY etc - + if euler_prev is not None: euler = pbone.rotation_euler.copy() euler.make_compatible(euler_prev) pbone.rotation_euler = euler euler_prev = euler del euler - + pbone.keyframe_insert("rotation_euler", -1, f, name) if euler_prev is None: |