Fix crasher in own UIList bookmarks commit.
Immediate crash in merged asset-experiments branch, no idea why it did not show in master too?
This commit is contained in:
parent
d4934f8f6d
commit
8668006519
Notes:
blender-bot
2023-02-14 09:29:43 +01:00
Referenced by issue #43629, Blender crashes on loading file if file browser panel open
|
@ -260,7 +260,8 @@ static void file_refresh(const bContext *C, ScrArea *sa)
|
|||
sfile->layout->dirty = true;
|
||||
}
|
||||
|
||||
if (BKE_area_find_region_type(sa, RGN_TYPE_TOOLS) == NULL) {
|
||||
/* Might be called with NULL sa, see file_main_area_draw() below. */
|
||||
if (sa && BKE_area_find_region_type(sa, RGN_TYPE_TOOLS) == NULL) {
|
||||
/* Create TOOLS/TOOL_PROPS regions. */
|
||||
file_tools_region(sa);
|
||||
|
||||
|
|
Loading…
Reference in New Issue