change to drag-toggle don't exit when the mouse is outside the region - its annoying for setting layers in the 3d header.

This commit is contained in:
Campbell Barton 2013-02-22 07:28:45 +00:00
parent c12eeb4ec6
commit 4aea4c2cb3

@ -1246,13 +1246,7 @@ static int ui_drag_toggle_modal(bContext *C, wmOperator *op, wmEvent *event)
} }
case MOUSEMOVE: case MOUSEMOVE:
{ {
ARegion *ar = CTX_wm_region(C);
if (!BLI_rcti_isect_pt_v(&ar->winrct, &event->x)) {
done = true;
}
else {
ui_drag_but_set(C, op, &event->x); ui_drag_but_set(C, op, &event->x);
}
break; break;
} }
} }