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>2012-12-17 13:02:43 +0400
committerTon Roosendaal <ton@blender.org>2012-12-17 13:02:43 +0400
commit359b683e1efef80648bf4dbd8225c540a05d0cf1 (patch)
treebf45f06cb00942ecdaeb5c2bbb1a76fba0c80374 /source/blender/editors/screen
parent8a4ba61786fe4e9e8e5729cb20d0ed4aad3e0d46 (diff)
Small tweak for using transparent+overlapping regions:
On mouse-over these regions now become active always (as if they were opaque). This active state is used by many tools, or for drawing cursors. Currently, all events (if not handled by button region) are passed on anyway to the underlying region. Visible errors were for example drawing the paint brush circle.
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r--source/blender/editors/screen/screen_edit.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/screen/screen_edit.c b/source/blender/editors/screen/screen_edit.c
index bf44e6be7b6..f71d63e5fef 100644
--- a/source/blender/editors/screen/screen_edit.c
+++ b/source/blender/editors/screen/screen_edit.c
@@ -1291,9 +1291,12 @@ void ED_screen_set_subwinactive(bContext *C, wmEvent *event)
break;
}
if (sa) {
+ /* make overlap active when mouse over */
for (ar = sa->regionbase.first; ar; ar = ar->next) {
- if (BLI_rcti_isect_pt_v(&ar->winrct, &event->x))
+ if (BLI_rcti_isect_pt_v(&ar->winrct, &event->x)) {
scr->subwinactive = ar->swinid;
+ break;
+ }
}
}
else