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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2010-09-23 22:45:56 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2010-09-23 22:45:56 +0400
commit6ae20032500d6a23f00fba5e53e6a2ea41bc0646 (patch)
tree79efe8088a3cdebffd60eac116768709eb2341d9 /source/blender/editors/armature
parentc8343f59d857d4bfde29b1e92e4daaabc1489977 (diff)
Small code cleanup to remove old undo calls that do nothing.
Diffstat (limited to 'source/blender/editors/armature')
-rw-r--r--source/blender/editors/armature/editarmature.c32
1 files changed, 7 insertions, 25 deletions
diff --git a/source/blender/editors/armature/editarmature.c b/source/blender/editors/armature/editarmature.c
index 19bee5723cb..c2d7b057bfb 100644
--- a/source/blender/editors/armature/editarmature.c
+++ b/source/blender/editors/armature/editarmature.c
@@ -88,10 +88,6 @@
#include "reeb.h"
#endif
-/* ************* XXX *************** */
-static void BIF_undo_push(const char *msg) {}
-/* ************* XXX *************** */
-
/* **************** tools on Editmode Armature **************** */
/* Sync selection to parent for connected children */
@@ -1896,7 +1892,7 @@ void ARMATURE_OT_delete(wmOperatorType *ot)
* toggle==2: only active tag
* toggle==3: swap (no test)
*/
-void ED_armature_deselectall(Object *obedit, int toggle, int doundo)
+void ED_armature_deselectall(Object *obedit, int toggle)
{
bArmature *arm= obedit->data;
EditBone *eBone;
@@ -1967,7 +1963,7 @@ int mouse_armature(bContext *C, short mval[2], int extend)
if (nearBone) {
if (!extend)
- ED_armature_deselectall(obedit, 0, 0);
+ ED_armature_deselectall(obedit, 0);
/* by definition the non-root connected bones have no root point drawn,
so a root selection needs to be delivered to the parent tip */
@@ -2362,7 +2358,7 @@ void add_primitive_bone(Scene *scene, View3D *v3d, RegionView3D *rv3d)
mul_m3_m3m3(totmat, obmat, viewmat);
invert_m3_m3(imat, totmat);
- ED_armature_deselectall(obedit, 0, 0);
+ ED_armature_deselectall(obedit, 0);
/* Create a bone */
bone= ED_armature_edit_bone_add(obedit->data, "Bone");
@@ -2415,7 +2411,7 @@ static int armature_click_extrude_exec(bContext *C, wmOperator *op)
to_root= 1;
}
- ED_armature_deselectall(obedit, 0, 0);
+ ED_armature_deselectall(obedit, 0);
/* we re-use code for mirror editing... */
flipbone= NULL;
@@ -3284,7 +3280,6 @@ static int armature_hide_exec(bContext *C, wmOperator *op)
}
ED_armature_validate_active(arm);
ED_armature_sync_selection(arm->edbo);
- BIF_undo_push("Hide Bones");
WM_event_add_notifier(C, NC_OBJECT|ND_DRAW, obedit);
@@ -3321,7 +3316,6 @@ static int armature_reveal_exec(bContext *C, wmOperator *op)
}
ED_armature_validate_active(arm);
ED_armature_sync_selection(arm->edbo);
- BIF_undo_push("Reveal Bones");
WM_event_add_notifier(C, NC_OBJECT|ND_DRAW, obedit);
@@ -3358,7 +3352,6 @@ void hide_selected_armature_bones(Scene *scene)
}
ED_armature_validate_active(arm);
ED_armature_sync_selection(arm->edbo);
- BIF_undo_push("Hide Bones");
}
@@ -3381,7 +3374,6 @@ static void hide_unselected_armature_bones(Scene *scene)
ED_armature_validate_active(arm);
ED_armature_sync_selection(arm->edbo);
- BIF_undo_push("Hide Unselected Bones");
}
#endif
@@ -3402,7 +3394,6 @@ void show_all_armature_bones(Scene *scene)
}
ED_armature_validate_active(arm);
ED_armature_sync_selection(arm->edbo);
- BIF_undo_push("Reveal Bones");
}
#endif
@@ -3587,7 +3578,7 @@ static int armature_bone_primitive_add_exec(bContext *C, wmOperator *op)
mul_m3_m3m3(totmat, obmat, viewmat);
invert_m3_m3(imat, totmat);
- ED_armature_deselectall(obedit, 0, 0);
+ ED_armature_deselectall(obedit, 0);
/* Create a bone */
bone= ED_armature_edit_bone_add(obedit->data, name);
@@ -4470,7 +4461,7 @@ int ED_do_pose_selectbuffer(Scene *scene, Base *base, unsigned int *buffer, shor
/* since we do unified select, we don't shift+select a bone if the armature object was not active yet */
if (!(extend) || (base != scene->basact)) {
- ED_pose_deselectall(ob, 0, 0);
+ ED_pose_deselectall(ob, 0);
nearBone->flag |= (BONE_SELECTED|BONE_TIPSEL|BONE_ROOTSEL);
arm->act_bone= nearBone;
@@ -4517,7 +4508,7 @@ int ED_do_pose_selectbuffer(Scene *scene, Base *base, unsigned int *buffer, shor
test==2: only clear active tag
test==3: swap select (no test / inverse selection status of all independently)
*/
-void ED_pose_deselectall (Object *ob, int test, int doundo)
+void ED_pose_deselectall (Object *ob, int test)
{
bArmature *arm= ob->data;
bPoseChannel *pchan;
@@ -4557,13 +4548,6 @@ void ED_pose_deselectall (Object *ob, int test, int doundo)
if(arm->act_bone && (arm->act_bone->flag & BONE_SELECTED)==0)
arm->act_bone= NULL;
-
- //countall(); // XXX need an equivalent to this...
-
- if (doundo) {
- if (selectmode==1) BIF_undo_push("Select All");
- else BIF_undo_push("Deselect All");
- }
}
static int bone_skinnable(Object *ob, Bone *bone, void *datap)
@@ -6147,8 +6131,6 @@ void generateSkeletonFromReebGraph(Scene *scene, ReebGraph *rg)
}
BLI_ghash_free(arcBoneMap, NULL, NULL);
-
- BIF_undo_push("Generate Skeleton");
}
void generateSkeleton(Scene *scene)