Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/blender/windowmanager/intern/wm_init_exit.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c
index 77d3e3762a8..8778929ae08 100644
--- a/source/blender/windowmanager/intern/wm_init_exit.c
+++ b/source/blender/windowmanager/intern/wm_init_exit.c
@@ -179,10 +179,12 @@ void WM_init(bContext *C, int argc, const char **argv)
GPU_set_linear_mipmap(true);
GPU_set_anisotropic(U.anisotropic_filter);
GPU_set_gpu_mipmapping(U.use_gpu_mipmap);
-
- UI_init();
}
+ /* Note: Currently only inits icons, which we now want in background mode too (scripts could use those in background
+ * processing...). In case we do more later, we may need to pass a 'background' flag. */
+ UI_init();
+
ED_spacemacros_init();
/* note: there is a bug where python needs initializing before loading the