Fix crash updating themes in background mode

This commit is contained in:
Campbell Barton 2021-02-24 23:34:00 +11:00
parent 12b805148f
commit 5c098ef58c

@ -274,7 +274,9 @@ static void rna_userdef_gizmo_update(Main *bmain, Scene *scene, PointerRNA *ptr)
static void rna_userdef_theme_update_icons(Main *bmain, Scene *scene, PointerRNA *ptr)
{
UI_icons_reload_internal_textures();
if (!G.background) {
UI_icons_reload_internal_textures();
}
rna_userdef_theme_update(bmain, scene, ptr);
}