[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [21168] branches/blender2.5/blender/source /blender/editors/screen/area.c: 2.5

Ton Roosendaal ton at blender.org
Fri Jun 26 14:55:46 CEST 2009


Revision: 21168
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=21168
Author:   ton
Date:     2009-06-26 14:55:46 +0200 (Fri, 26 Jun 2009)

Log Message:
-----------
2.5

Makes toolbar region in 3d editor work correctly overlapping, also
when area is subdivided in 4-split, and/or with properties region.

Modified Paths:
--------------
    branches/blender2.5/blender/source/blender/editors/screen/area.c

Modified: branches/blender2.5/blender/source/blender/editors/screen/area.c
===================================================================
--- branches/blender2.5/blender/source/blender/editors/screen/area.c	2009-06-26 12:33:07 UTC (rev 21167)
+++ branches/blender2.5/blender/source/blender/editors/screen/area.c	2009-06-26 12:55:46 UTC (rev 21168)
@@ -259,14 +259,16 @@
 	while(ar->prev) {
 		ar= ar->prev;
 		
-		if(ar->flag & RGN_FLAG_HIDDEN);
-		else if(ar->alignment==RGN_OVERLAP_LEFT) {
-			winrct->xmin= ar->winrct.xmax + 1;
+		if(BLI_isect_rcti(winrct, &ar->winrct, NULL)) {
+			if(ar->flag & RGN_FLAG_HIDDEN);
+			else if(ar->alignment==RGN_OVERLAP_LEFT) {
+				winrct->xmin= ar->winrct.xmax + 1;
+			}
+			else if(ar->alignment==RGN_OVERLAP_RIGHT) {
+				winrct->xmax= ar->winrct.xmin - 1;
+			}
+			else break;
 		}
-		else if(ar->alignment==RGN_OVERLAP_RIGHT) {
-			winrct->xmax= ar->winrct.xmin - 1;
-		}
-		else break;
 	}
 }
 





More information about the Bf-blender-cvs mailing list