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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Eagar <joeedh@gmail.com>2007-07-18 19:22:42 +0400
committerJoseph Eagar <joeedh@gmail.com>2007-07-18 19:22:42 +0400
commit29c1727e8868075ae52cb9c894d823f217e50e3c (patch)
tree5d60540b6bba9f1d28dca451cd3905c590435e9f /source/blender/src/editkey.c
parentff6c3dd0ae87b6524fb17a0a7a963a4c51bbbffd (diff)
=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.
Diffstat (limited to 'source/blender/src/editkey.c')
-rw-r--r--source/blender/src/editkey.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/src/editkey.c b/source/blender/src/editkey.c
index 975f792d2b9..02f8e650d90 100644
--- a/source/blender/src/editkey.c
+++ b/source/blender/src/editkey.c
@@ -613,6 +613,7 @@ void insert_shapekey(Object *ob)
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 @@ void delete_key(Object *ob)
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 @@ void move_keys(Object *ob)
/* for boundbox */
editipo_changed(G.sipo, 0);
+ BIF_undo_push("Move Shapekey(s)");
allspace(REMAKEIPO, 0);
allqueue(REDRAWIPO, 0);
allqueue(REDRAWVIEW3D, 0);