forked from bartvdbraak/blender
* Testing removing the click-region-edge-to-minimise functionality
It was getting very annoying, hitting it by accident and having the region disappear. Now, you can still hide the region by resizing it down to zero, or by using the hotkeys (i.e. N, or T in the 3D View). Perhaps this minimising would be better done in a RMB menu on sub-regions (i.e. like previous Header: top/bottom/hide stuff)
This commit is contained in:
parent
f560eb0c46
commit
6c655aa2a7
@ -1348,9 +1348,11 @@ static int region_scale_modal(bContext *C, wmOperator *op, wmEvent *event)
|
|||||||
if(event->val==0) {
|
if(event->val==0) {
|
||||||
|
|
||||||
if(ABS(event->x - rmd->origx) < 2 && ABS(event->y - rmd->origy) < 2) {
|
if(ABS(event->x - rmd->origx) < 2 && ABS(event->y - rmd->origy) < 2) {
|
||||||
ED_region_toggle_hidden(C, rmd->ar);
|
if(rmd->ar->flag & RGN_FLAG_HIDDEN) {
|
||||||
WM_event_add_notifier(C, NC_SCREEN|NA_EDITED, NULL);
|
ED_region_toggle_hidden(C, rmd->ar);
|
||||||
}
|
WM_event_add_notifier(C, NC_SCREEN|NA_EDITED, NULL);
|
||||||
|
}
|
||||||
|
}
|
||||||
MEM_freeN(op->customdata);
|
MEM_freeN(op->customdata);
|
||||||
op->customdata = NULL;
|
op->customdata = NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user