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:
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index 9df0ece26b5..f7b0fa3a31f 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -377,7 +377,6 @@ int main(int argc,
BKE_blender_globals_init(); /* blender.c */
BKE_idtype_init();
- IMB_init();
BKE_cachefiles_init();
BKE_images_init();
BKE_modifier_init();
@@ -413,9 +412,16 @@ int main(int argc,
G.factory_startup = true;
#endif
+ /* After parsing the first level of arguments as `--env-*` impact BKE_appdir behavior. */
+ BKE_appdir_init();
+
/* After parsing number of threads argument. */
BLI_task_scheduler_init();
+ /* After parsing `--env-system-datafiles` which control where paths are searched
+ * (color-management) uses BKE_appdir to initialize. */
+ IMB_init();
+
#ifdef WITH_FFMPEG
IMB_ffmpeg_init();
#endif