forked from bartvdbraak/blender
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:
parent
c12eeb4ec6
commit
4aea4c2cb3
@ -1246,13 +1246,7 @@ static int ui_drag_toggle_modal(bContext *C, wmOperator *op, wmEvent *event)
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user