[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [23383] trunk/blender/source/blender/ editors/screen/screen_ops.c: * Testing removing the click-region-edge-to-minimise functionality
Matt Ebb
matt at mke3.net
Mon Sep 21 03:32:39 CEST 2009
Revision: 23383
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23383
Author: broken
Date: 2009-09-21 03:32:37 +0200 (Mon, 21 Sep 2009)
Log Message:
-----------
* 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)
Modified Paths:
--------------
trunk/blender/source/blender/editors/screen/screen_ops.c
Modified: trunk/blender/source/blender/editors/screen/screen_ops.c
===================================================================
--- trunk/blender/source/blender/editors/screen/screen_ops.c 2009-09-21 00:48:36 UTC (rev 23382)
+++ trunk/blender/source/blender/editors/screen/screen_ops.c 2009-09-21 01:32:37 UTC (rev 23383)
@@ -1348,9 +1348,11 @@
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;
More information about the Bf-blender-cvs
mailing list