[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11304] trunk/blender/source/blender/src/ editkey.c: =Shapekey Missing Undopush bugfix=
Joseph Eagar
joeedh at gmail.com
Wed Jul 18 17:22:42 CEST 2007
Revision: 11304
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11304
Author: joeedh
Date: 2007-07-18 17:22:42 +0200 (Wed, 18 Jul 2007)
Log Message:
-----------
=Shapekey Missing Undopush bugfix=
Added some missing undo pushes in editkey.c. Now when you add/delete
shapekeys, you can do undo and actually have it undo adding/deleting the
shade keys.
Modified Paths:
--------------
trunk/blender/source/blender/src/editkey.c
Modified: trunk/blender/source/blender/src/editkey.c
===================================================================
--- trunk/blender/source/blender/src/editkey.c 2007-07-18 14:53:17 UTC (rev 11303)
+++ trunk/blender/source/blender/src/editkey.c 2007-07-18 15:22:42 UTC (rev 11304)
@@ -613,6 +613,7 @@
key= ob_get_key(ob);
ob->shapenr= BLI_countlist(&key->block);
+ BIF_undo_push("Add Shapekey");
allspace(REMAKEIPO, 0);
allqueue(REDRAWIPO, 0);
allqueue(REDRAWACTION, 0);
@@ -674,6 +675,7 @@
DAG_object_flush_update(G.scene, OBACT, OB_RECALC_DATA);
+ BIF_undo_push("Delete Shapekey");
allqueue(REDRAWVIEW3D, 0);
allqueue(REDRAWBUTSEDIT, 0);
allspace(REMAKEIPO, 0);
@@ -762,6 +764,7 @@
/* for boundbox */
editipo_changed(G.sipo, 0);
+ BIF_undo_push("Move Shapekey(s)");
allspace(REMAKEIPO, 0);
allqueue(REDRAWIPO, 0);
allqueue(REDRAWVIEW3D, 0);
More information about the Bf-blender-cvs
mailing list