forked from bartvdbraak/blender
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
@ -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
Block a user