diff options
author | Daniel Salazar <zanqdo@gmail.com> | 2012-11-20 05:44:58 +0400 |
---|---|---|
committer | Daniel Salazar <zanqdo@gmail.com> | 2012-11-20 05:44:58 +0400 |
commit | 0edc2ed962f960cc07f24bb4ca49d8ae802aa7ca (patch) | |
tree | 618a5f87a2cf8a03e6b08512f0374f79359118b2 /animation_animall.py | |
parent | f9cf9a73978846b828eb19973f98a272fee79cb6 (diff) |
AnimAll: Inserting keyframes on lattices now works in edit mode too. Requested by Virgilio Vasconcelos @ BlenderPro!
Diffstat (limited to 'animation_animall.py')
-rw-r--r-- | animation_animall.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/animation_animall.py b/animation_animall.py index e291799e..c20f64b1 100644 --- a/animation_animall.py +++ b/animation_animall.py @@ -198,10 +198,18 @@ class ANIM_OT_insert_keyframe_animall(bpy.types.Operator): bpy.ops.object.editmode_toggle() if Obj.type == 'LATTICE': + Mode = False + if context.mode != 'OBJECT': + Mode = not Mode + bpy.ops.object.editmode_toggle() + if context.window_manager.key_shape: if Obj.active_shape_key: for Point in Obj.active_shape_key.data: Point.keyframe_insert('co') + + if Mode: + bpy.ops.object.editmode_toggle() if Obj.type == 'CURVE': Mode = False |