Fix [#22202] Box Selecting bones does not update animation windows
authorMatt Ebb <matt@mke3.net>
Fri, 30 Apr 2010 07:22:07 +0000 (07:22 +0000)
committerMatt Ebb <matt@mke3.net>
Fri, 30 Apr 2010 07:22:07 +0000 (07:22 +0000)
source/blender/editors/space_view3d/view3d_select.c

index 2cad28b8d1e9c9b15f2071b7dd24bedcf8bcbcb1..7fe9ed968c58b40a69d0cd5680d4869fe46e701e 100644 (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;
                        }