Fix #113002: Fix Crash When Loading Previous Settings #113016

Merged
Jeroen Bakker merged 1 commits from Jeroen-Bakker/blender:fix/113002 into blender-v4.0-release 2023-09-28 20:44:29 +02:00
1 changed files with 5 additions and 0 deletions

View File

@ -2443,6 +2443,11 @@ static int wm_userpref_read_exec(bContext *C, wmOperator *op)
U.runtime.is_dirty = true;
}
/* Ensure the correct icon textures are loaded. When the current theme didn't had an
* #icon_border_intensity, but the loaded theme has, the icon with border intensity needs to be
* loaded. */
UI_icons_reload_internal_textures();
BKE_callback_exec_null(bmain, BKE_CB_EVT_EXTENSION_REPOS_UPDATE_POST);
/* Needed to recalculate UI scaling values (eg, #UserDef.inv_dpi_fac). */