From 2501386f2b149d30e2ffb56a57d3cd801b0c431a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 27 Jun 2006 05:56:56 +0000 Subject: [PATCH] Posemode was missing a "countall" call with pose mode select/deselect all. while adding this I noticed that lattice and metaballs were also missing countall() calls. Added countall to metaball select, undo, duplicate (all the obvious places) - but its possible coultall() could be added to other functions especialy for metaballs. --- source/blender/src/editarmature.c | 3 ++- source/blender/src/editlattice.c | 3 ++- source/blender/src/editmball.c | 10 +++++++--- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/source/blender/src/editarmature.c b/source/blender/src/editarmature.c index 3ce31ea8963..60959bc7336 100644 --- a/source/blender/src/editarmature.c +++ b/source/blender/src/editarmature.c @@ -1935,7 +1935,8 @@ void deselectall_posearmature (Object *ob, int test) allqueue(REDRAWVIEW3D, 0); allqueue(REDRAWOOPS, 0); allqueue(REDRAWACTION, 0); - + + countall(); } diff --git a/source/blender/src/editlattice.c b/source/blender/src/editlattice.c index ab2d5a20c9b..244b035db15 100644 --- a/source/blender/src/editlattice.c +++ b/source/blender/src/editlattice.c @@ -200,6 +200,7 @@ void deselectall_Latt(void) if(bp->hide==0) { if(bp->f1) { setflagsLatt(0); + countall(); BIF_undo_push("(De)select all"); return; } @@ -207,7 +208,7 @@ void deselectall_Latt(void) bp++; } setflagsLatt(1); - + countall(); BIF_undo_push("(De)select all"); } diff --git a/source/blender/src/editmball.c b/source/blender/src/editmball.c index 766ddd44065..acf3fbff99d 100644 --- a/source/blender/src/editmball.c +++ b/source/blender/src/editmball.c @@ -235,6 +235,7 @@ void deselectall_mball() ml= ml->next; } allqueue(REDRAWVIEW3D, 0); + countall(); // BIF_undo_push("Deselect MetaElem"); } @@ -295,6 +296,7 @@ void mouse_mball() allqueue(REDRAWBUTSEDIT, 0); } } + countall(); rightmouse_transform(); } @@ -314,6 +316,7 @@ void adduplicate_mball() } BIF_TransformSetUndo("Add Duplicate"); + countall(); initTransform(TFM_TRANSLATION, CTX_NO_PET); Transform(); allqueue(REDRAWBUTSEDIT, 0); @@ -341,7 +344,7 @@ void delete_mball() DAG_object_flush_update(G.scene, G.obedit, OB_RECALC_DATA); allqueue(REDRAWVIEW3D, 0); allqueue(REDRAWBUTSEDIT, 0); - + countall(); BIF_undo_push("Delete MetaElem"); } @@ -389,6 +392,7 @@ static void undoMball_to_editMball(void *lbv) for(nr=0, lastelem= editelems.first; lastelem; lastelem= lastelem->next, nr++) if(nr==lastmlnr) break; + countall(); } static void *editMball_to_undoMball(void) @@ -448,7 +452,7 @@ void hide_mball(char hide) DAG_object_flush_update(G.scene, G.obedit, OB_RECALC_DATA); allqueue(REDRAWVIEW3D, 0); allqueue(REDRAWBUTSEDIT, 0); - + countall(); BIF_undo_push("Hide MetaElems"); } @@ -467,6 +471,6 @@ void reveal_mball(void) DAG_object_flush_update(G.scene, G.obedit, OB_RECALC_DATA); allqueue(REDRAWVIEW3D, 0); allqueue(REDRAWBUTSEDIT, 0); - + countall(); BIF_undo_push("Unhide MetaElems"); }