From 9d30fade3ea9b03e0764ab5dc9a9263543a79a83 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 4 Oct 2020 21:48:48 +1100 Subject: Fix color-management ignoring the data-path command line value Initialize ImBuf (and color-management) after passing arguments that set environment variables such as `--env-system-datapath` This also fixes a bug where BKE_appdir logging failed since it was called before the `--log` argument was passed. Add asserts so this doesn't happen again. --- source/blender/blenkernel/BKE_appdir.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/blenkernel/BKE_appdir.h') diff --git a/source/blender/blenkernel/BKE_appdir.h b/source/blender/blenkernel/BKE_appdir.h index 4488e23f791..3e52d7f3301 100644 --- a/source/blender/blenkernel/BKE_appdir.h +++ b/source/blender/blenkernel/BKE_appdir.h @@ -25,6 +25,8 @@ extern "C" { struct ListBase; +void BKE_appdir_init(void); + /* note on naming: typical _get() suffix is omitted here, * since its the main purpose of the API. */ const char *BKE_appdir_folder_default(void); -- cgit v1.2.3