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:
authorJulian Eisel <eiseljulian@gmail.com>2020-01-22 19:54:18 +0300
committerJulian Eisel <eiseljulian@gmail.com>2020-01-22 20:02:47 +0300
commit084f072aae73de39fecc35ac97d602b1db7d0d98 (patch)
tree4a994b27e985a748900139a005022abd91f5b00d /source/blender/editors/screen
parentabce4833a64f9dd18a7b90071e9772bc354bd3a6 (diff)
Fix T73191: Buttons in lower left of Preferences broken
I'm still not entirely sure what was going on - I know that the execute region didn't get initialized correctly, but doing that at a later point didn't fix the issue. Apparently forcing the header region to re-initialize does fix it, even though I was sure this was redundant. Also fixes a memory leak in UI code after preferences were opened.
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r--source/blender/editors/screen/screen_ops.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c
index 9ea8c8293d4..0e1ae03fd20 100644
--- a/source/blender/editors/screen/screen_ops.c
+++ b/source/blender/editors/screen/screen_ops.c
@@ -4843,7 +4843,10 @@ static int userpref_show_invoke(bContext *C, wmOperator *op, const wmEvent *even
* So hiding in the temp window makes sense. */
ScrArea *area = CTX_wm_area(C);
ARegion *region = BKE_area_find_region_type(area, RGN_TYPE_HEADER);
+
region->flag |= RGN_FLAG_HIDDEN;
+ ED_region_visibility_change_update(C, area, region);
+
return OPERATOR_FINISHED;
}
else {