[Bf-blender-cvs] [5c098ef58c4] master: Fix crash updating themes in background mode
Campbell Barton
noreply at git.blender.org
Wed Feb 24 13:40:21 CET 2021
Commit: 5c098ef58c4b1b8e9111d33ae64fda8a300dd84d
Author: Campbell Barton
Date: Wed Feb 24 23:34:00 2021 +1100
Branches: master
https://developer.blender.org/rB5c098ef58c4b1b8e9111d33ae64fda8a300dd84d
Fix crash updating themes in background mode
===================================================================
M source/blender/makesrna/intern/rna_userdef.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c
index 7f7adc69dd1..1abd16caaeb 100644
--- a/source/blender/makesrna/intern/rna_userdef.c
+++ b/source/blender/makesrna/intern/rna_userdef.c
@@ -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);
}
More information about the Bf-blender-cvs
mailing list