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:
authorHarley Acheson <harley.acheson@gmail.com>2021-10-25 08:01:20 +0300
committerHarley Acheson <harley.acheson@gmail.com>2021-10-25 08:12:20 +0300
commitb714f9bf437de32dab768d4c28674ca1f3e5b325 (patch)
treeeacca37dfbdee4cf93b74eeb4f90459506f6ecbe /source/blender/windowmanager/intern/wm_files.c
parent82ae7b990acfa2c522895322eb052b90f0c3b83a (diff)
Fix T91931: Thumbnail Missing Region
Fixes a crash when blend thumbnails set to Camera View when there is no camera, which resulted in use of a null region. See D12748 for more details. Differential Revision: https://developer.blender.org/D12748 Reviewed by Campbell Barton
Diffstat (limited to 'source/blender/windowmanager/intern/wm_files.c')
-rw-r--r--source/blender/windowmanager/intern/wm_files.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index e203281297b..2525c627785 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -1644,6 +1644,7 @@ static ImBuf *blend_file_thumb_from_camera(const bContext *C,
area = BKE_screen_find_big_area(screen, SPACE_VIEW3D, 0);
if (area) {
v3d = area->spacedata.first;
+ region = BKE_area_find_region_type(area, RGN_TYPE_WINDOW);
}
}