[Bf-blender-cvs] [b714f9bf437] master: Fix T91931: Thumbnail Missing Region

Harley Acheson noreply at git.blender.org
Mon Oct 25 07:12:29 CEST 2021


Commit: b714f9bf437de32dab768d4c28674ca1f3e5b325
Author: Harley Acheson
Date:   Sun Oct 24 22:01:20 2021 -0700
Branches: master
https://developer.blender.org/rBb714f9bf437de32dab768d4c28674ca1f3e5b325

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

===================================================================

M	source/blender/windowmanager/intern/wm_files.c

===================================================================

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);
     }
   }



More information about the Bf-blender-cvs mailing list