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:
authorCampbell Barton <ideasman42@gmail.com>2019-04-23 08:44:31 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-23 08:44:31 +0300
commit4d5e83f608d3cb7312383d4d90352a175594772e (patch)
treead40d15829e0bd82a2440299c7eb9d6a7f390fa8 /source/blender/editors/interface/interface_query.c
parent3302fbaeb1d5f58d926c06b6153ec5d6f1a9b0be (diff)
UI: move auto_open clearing out of ui_region_contains_point_px
Prefer explicit call for menu buttons since it's confusing if only some queries clear auto open. Also queries shouldn't modify data.
Diffstat (limited to 'source/blender/editors/interface/interface_query.c')
-rw-r--r--source/blender/editors/interface/interface_query.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/source/blender/editors/interface/interface_query.c b/source/blender/editors/interface/interface_query.c
index be09e44fa9d..9129bbddf69 100644
--- a/source/blender/editors/interface/interface_query.c
+++ b/source/blender/editors/interface/interface_query.c
@@ -497,10 +497,6 @@ bool ui_region_contains_point_px(const ARegion *ar, int x, int y)
/* check if the mouse is in the region */
if (!BLI_rcti_isect_pt(&winrct, x, y)) {
- for (uiBlock *block = ar->uiblocks.first; block; block = block->next) {
- block->auto_open = false;
- }
-
return false;
}