[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3987] trunk/py/scripts/addons/ animation_animall.py: AnimAll: Inserting keyframes on lattices now works in edit mode too.
Daniel Salazar
zanqdo at gmail.com
Tue Nov 20 02:45:00 CET 2012
Revision: 3987
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3987
Author: zanqdo
Date: 2012-11-20 01:44:58 +0000 (Tue, 20 Nov 2012)
Log Message:
-----------
AnimAll: Inserting keyframes on lattices now works in edit mode too. Requested by Virgilio Vasconcelos @ BlenderPro!
Modified Paths:
--------------
trunk/py/scripts/addons/animation_animall.py
Modified: trunk/py/scripts/addons/animation_animall.py
===================================================================
--- trunk/py/scripts/addons/animation_animall.py 2012-11-19 23:28:49 UTC (rev 3986)
+++ trunk/py/scripts/addons/animation_animall.py 2012-11-20 01:44:58 UTC (rev 3987)
@@ -198,10 +198,18 @@
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
More information about the Bf-extensions-cvs
mailing list