diff options
author | Peter Kim <pk15950@gmail.com> | 2022-03-25 07:22:04 +0300 |
---|---|---|
committer | Peter Kim <pk15950@gmail.com> | 2022-03-25 07:22:04 +0300 |
commit | 315210c22baea5e0da06cac7fee4c24a4b7d887f (patch) | |
tree | 4e82ec9dead85650ddfae3718a369ea8cd9d54c0 /source/blender/editors/screen/area.c | |
parent | 93f2ebe7ddb7f18a1bb72b4f65a26c9e2d26774a (diff) |
XR: Fix crash on executing some action operators
Since the XR area does not have any region geometry, hud updates from
operators would cause invalid access when updating region sizes.
Diffstat (limited to 'source/blender/editors/screen/area.c')
-rw-r--r-- | source/blender/editors/screen/area.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c index af84f6f99a9..30bf23e0987 100644 --- a/source/blender/editors/screen/area.c +++ b/source/blender/editors/screen/area.c @@ -1972,6 +1972,7 @@ void ED_area_init(wmWindowManager *wm, wmWindow *win, ScrArea *area) static void area_offscreen_init(ScrArea *area) { + area->flag |= AREA_FLAG_OFFSCREEN; area->type = BKE_spacetype_from_id(area->spacetype); if (area->type == NULL) { |