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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Salazar <zanqdo@gmail.com>2012-11-20 05:44:58 +0400
committerDaniel Salazar <zanqdo@gmail.com>2012-11-20 05:44:58 +0400
commit0edc2ed962f960cc07f24bb4ca49d8ae802aa7ca (patch)
tree618a5f87a2cf8a03e6b08512f0374f79359118b2 /animation_animall.py
parentf9cf9a73978846b828eb19973f98a272fee79cb6 (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.py8
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