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:
@@ -260,7 +260,8 @@ static void file_refresh(const bContext *C, ScrArea *sa)
|
|||||||
sfile->layout->dirty = true;
|
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. */
|
/* Create TOOLS/TOOL_PROPS regions. */
|
||||||
file_tools_region(sa);
|
file_tools_region(sa);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user