UI: don't change the theme area when setting theme
This commit is contained in:
parent
be5482ba2f
commit
e856eb7e8b
Notes:
blender-bot
2023-02-14 05:39:38 +01:00
Referenced by issue #55741, in Orphan mode in outliner is crash when Purge Referenced by issue #55721, Removing the active object from the current collection crashes Blender
|
@ -755,7 +755,9 @@ void ui_theme_init_default(void)
|
|||
|
||||
UI_SetTheme(0, 0); /* make sure the global used in this file is set */
|
||||
|
||||
const int active_theme_area = btheme->active_theme_area;
|
||||
memcpy(btheme, &U_theme_default, sizeof(*btheme));
|
||||
btheme->active_theme_area = active_theme_area;
|
||||
}
|
||||
|
||||
void ui_style_init_default(void)
|
||||
|
|
Loading…
Reference in New Issue