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:
authorAntonio Vazquez <blendergit@gmail.com>2020-02-22 18:20:08 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-02-22 18:20:08 +0300
commitfb47c131df51c11e36555a649d89784ecf155c0b (patch)
treea7071927cb3a5735937767e98efee1ba5c3cc3bb /source/blender
parent0b626703f99fb7146915f4be9e7013bae0c64c61 (diff)
Fix crash when open default template
As soon you select the default template, Blender crash on Winodws. This was introduced in commit {0b626703}
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/interface/interface_region_popup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_region_popup.c b/source/blender/editors/interface/interface_region_popup.c
index dee462e929a..b72cc7296db 100644
--- a/source/blender/editors/interface/interface_region_popup.c
+++ b/source/blender/editors/interface/interface_region_popup.c
@@ -554,7 +554,7 @@ static void ui_popup_block_remove(bContext *C, uiPopupBlockHandle *handle)
CTX_wm_region_set(C, ctx_ar);
/* reset to region cursor (only if there's not another menu open) */
- if (BLI_listbase_is_empty(&sc->regionbase)) {
+ if ((ctx_sa != NULL) && (BLI_listbase_is_empty(&sc->regionbase))) {
ctx_sa->flag |= AREA_FLAG_CURSOR_UPDATE;
}