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.
This commit is contained in:
Campbell Barton 2006-06-27 05:56:56 +00:00
parent e0aa1dd295
commit 2501386f2b
3 changed files with 11 additions and 5 deletions

@ -1935,7 +1935,8 @@ void deselectall_posearmature (Object *ob, int test)
allqueue(REDRAWVIEW3D, 0);
allqueue(REDRAWOOPS, 0);
allqueue(REDRAWACTION, 0);
countall();
}

@ -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");
}

@ -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");
}