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:
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