Fix [#22202] Box Selecting bones does not update animation windows

This commit is contained in:
2010-04-30 07:22:07 +00:00
parent 188d1ccf56
commit c64e4566e1

View File

@@ -1596,6 +1596,7 @@ static int view3d_borderselect_exec(bContext *C, wmOperator *op)
unsigned int *vbuffer=NULL; /* selection buffer */
unsigned int *col; /* color in buffer */
int bone_only;
int bone_selected=0;
int totobj= MAXPICKBUF; // XXX solve later
if((ob) && (ob->mode & OB_MODE_POSE))
@@ -1651,6 +1652,7 @@ static int view3d_borderselect_exec(bContext *C, wmOperator *op)
if(bone) {
if(selecting) {
bone->flag |= BONE_SELECTED;
bone_selected=1;
// XXX select_actionchannel_by_name(base->object->action, bone->name, 1);
}
else {
@@ -1676,6 +1678,8 @@ static int view3d_borderselect_exec(bContext *C, wmOperator *op)
}
}
if (bone_selected) WM_event_add_notifier(C, NC_OBJECT|ND_BONE_SELECT, base->object);
base= next;
}