Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2009-08-16 17:51:33 +0400
committerTon Roosendaal <ton@blender.org>2009-08-16 17:51:33 +0400
commitbbf24a2243fa414bf53b2d584dd31304a8b3662f (patch)
treef23776d8a9ddc4c49fe7b59135847f090ad3787d /source/blender/editors/screen/area.c
parentd823172d6d7121ceac9fd34d7f4a974675253706 (diff)
2.5
Small fix: region-zones (currently triangles) overlapped when closed in cases. Happened for 3d window toolbar for example.
Diffstat (limited to 'source/blender/editors/screen/area.c')
-rw-r--r--source/blender/editors/screen/area.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index 96ad9039dc1..296c38fa51a 100644
--- a/source/blender/editors/screen/area.c
+++ b/source/blender/editors/screen/area.c
@@ -499,7 +499,7 @@ static void region_azone_initialize(ScrArea *sa, ARegion *ar, char edge)
/* if more azones on 1 spot, set offset */
for(azt= sa->actionzones.first; azt; azt= azt->next) {
if(az!=azt) {
- if(az->x1==azt->x1 && az->y1==azt->y1) {
+ if( ABS(az->x1-azt->x1) < 2 && ABS(az->y1-azt->y1) < 2) {
if(edge=='t' || edge=='b') {
az->x1+= AZONESPOT;
az->x2+= AZONESPOT;