forked from bartvdbraak/blender
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:
parent
e0aa1dd295
commit
2501386f2b
@ -1936,6 +1936,7 @@ void deselectall_posearmature (Object *ob, int test)
|
|||||||
allqueue(REDRAWOOPS, 0);
|
allqueue(REDRAWOOPS, 0);
|
||||||
allqueue(REDRAWACTION, 0);
|
allqueue(REDRAWACTION, 0);
|
||||||
|
|
||||||
|
countall();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -200,6 +200,7 @@ void deselectall_Latt(void)
|
|||||||
if(bp->hide==0) {
|
if(bp->hide==0) {
|
||||||
if(bp->f1) {
|
if(bp->f1) {
|
||||||
setflagsLatt(0);
|
setflagsLatt(0);
|
||||||
|
countall();
|
||||||
BIF_undo_push("(De)select all");
|
BIF_undo_push("(De)select all");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -207,7 +208,7 @@ void deselectall_Latt(void)
|
|||||||
bp++;
|
bp++;
|
||||||
}
|
}
|
||||||
setflagsLatt(1);
|
setflagsLatt(1);
|
||||||
|
countall();
|
||||||
BIF_undo_push("(De)select all");
|
BIF_undo_push("(De)select all");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -235,6 +235,7 @@ void deselectall_mball()
|
|||||||
ml= ml->next;
|
ml= ml->next;
|
||||||
}
|
}
|
||||||
allqueue(REDRAWVIEW3D, 0);
|
allqueue(REDRAWVIEW3D, 0);
|
||||||
|
countall();
|
||||||
// BIF_undo_push("Deselect MetaElem");
|
// BIF_undo_push("Deselect MetaElem");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -295,6 +296,7 @@ void mouse_mball()
|
|||||||
allqueue(REDRAWBUTSEDIT, 0);
|
allqueue(REDRAWBUTSEDIT, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
countall();
|
||||||
rightmouse_transform();
|
rightmouse_transform();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -314,6 +316,7 @@ void adduplicate_mball()
|
|||||||
}
|
}
|
||||||
|
|
||||||
BIF_TransformSetUndo("Add Duplicate");
|
BIF_TransformSetUndo("Add Duplicate");
|
||||||
|
countall();
|
||||||
initTransform(TFM_TRANSLATION, CTX_NO_PET);
|
initTransform(TFM_TRANSLATION, CTX_NO_PET);
|
||||||
Transform();
|
Transform();
|
||||||
allqueue(REDRAWBUTSEDIT, 0);
|
allqueue(REDRAWBUTSEDIT, 0);
|
||||||
@ -341,7 +344,7 @@ void delete_mball()
|
|||||||
DAG_object_flush_update(G.scene, G.obedit, OB_RECALC_DATA);
|
DAG_object_flush_update(G.scene, G.obedit, OB_RECALC_DATA);
|
||||||
allqueue(REDRAWVIEW3D, 0);
|
allqueue(REDRAWVIEW3D, 0);
|
||||||
allqueue(REDRAWBUTSEDIT, 0);
|
allqueue(REDRAWBUTSEDIT, 0);
|
||||||
|
countall();
|
||||||
BIF_undo_push("Delete MetaElem");
|
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++)
|
for(nr=0, lastelem= editelems.first; lastelem; lastelem= lastelem->next, nr++)
|
||||||
if(nr==lastmlnr) break;
|
if(nr==lastmlnr) break;
|
||||||
|
|
||||||
|
countall();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *editMball_to_undoMball(void)
|
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);
|
DAG_object_flush_update(G.scene, G.obedit, OB_RECALC_DATA);
|
||||||
allqueue(REDRAWVIEW3D, 0);
|
allqueue(REDRAWVIEW3D, 0);
|
||||||
allqueue(REDRAWBUTSEDIT, 0);
|
allqueue(REDRAWBUTSEDIT, 0);
|
||||||
|
countall();
|
||||||
BIF_undo_push("Hide MetaElems");
|
BIF_undo_push("Hide MetaElems");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -467,6 +471,6 @@ void reveal_mball(void)
|
|||||||
DAG_object_flush_update(G.scene, G.obedit, OB_RECALC_DATA);
|
DAG_object_flush_update(G.scene, G.obedit, OB_RECALC_DATA);
|
||||||
allqueue(REDRAWVIEW3D, 0);
|
allqueue(REDRAWVIEW3D, 0);
|
||||||
allqueue(REDRAWBUTSEDIT, 0);
|
allqueue(REDRAWBUTSEDIT, 0);
|
||||||
|
countall();
|
||||||
BIF_undo_push("Unhide MetaElems");
|
BIF_undo_push("Unhide MetaElems");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user