Skip to content
Snippets Groups Projects
Commit 0edc2ed9 authored by Daniel Salazar's avatar Daniel Salazar
Browse files

AnimAll: Inserting keyframes on lattices now works in edit mode too. Requested...

AnimAll: Inserting keyframes on lattices now works in edit mode too. Requested by Virgilio Vasconcelos @ BlenderPro!
parent f9cf9a73
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment