diff options
author | Matt Ebb <matt@mke3.net> | 2009-09-21 05:32:37 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2009-09-21 05:32:37 +0400 |
commit | 6c655aa2a762e440ba3f64ce8520c6ce41268d3e (patch) | |
tree | e9fd414040ebeefc9c3ade20df27cf826281a917 | |
parent | f560eb0c466e284208f37c3cda2d6c27f7e6bf58 (diff) |
* 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)
-rw-r--r-- | source/blender/editors/screen/screen_ops.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c index ef28ff6dbd1..f4af0cd6883 100644 --- a/source/blender/editors/screen/screen_ops.c +++ b/source/blender/editors/screen/screen_ops.c @@ -1348,9 +1348,11 @@ static int region_scale_modal(bContext *C, wmOperator *op, wmEvent *event) if(event->val==0) { if(ABS(event->x - rmd->origx) < 2 && ABS(event->y - rmd->origy) < 2) { - ED_region_toggle_hidden(C, rmd->ar); - WM_event_add_notifier(C, NC_SCREEN|NA_EDITED, NULL); - } + if(rmd->ar->flag & RGN_FLAG_HIDDEN) { + ED_region_toggle_hidden(C, rmd->ar); + WM_event_add_notifier(C, NC_SCREEN|NA_EDITED, NULL); + } + } MEM_freeN(op->customdata); op->customdata = NULL; |