Fix crash selecting custom asset preview from maximized File Browser
If Preferences > Interface > Temporary Editors > File Browser is set to
"Maximized Area", "Load Custom Preview" in the Asset Browser would crash
after selecting the file.
1e799dd26e
was important to get this issue fixed. This commit just
ensures the file-list is recreated correctly after closing the temporary
File Browser, so the custom preview operator can execute on valid
context.
This commit is contained in:
parent
1e799dd26e
commit
7e8f6985d8
|
@ -2293,6 +2293,11 @@ static int wm_handler_fileselect_do(bContext *C,
|
|||
}
|
||||
|
||||
wm_handler_op_context(C, handler, ctx_win->eventstate);
|
||||
ScrArea *handler_area = CTX_wm_area(C);
|
||||
/* Make sure new context area is ready, the operator callback may operate on it. */
|
||||
if (handler_area) {
|
||||
ED_area_do_refresh(C, handler_area);
|
||||
}
|
||||
|
||||
/* Needed for #UI_popup_menu_reports. */
|
||||
|
||||
|
|
Loading…
Reference in New Issue