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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-09-16 19:17:22 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-09-16 19:17:22 +0400
commitfc7de2353763c65db3c04c29dcc33289bb86966d (patch)
tree3651a4c2f3c32622ea0eaff3f60264ed6ac1bb73 /source/blender/imbuf
parenteacf3054aa7479f98d87b8bdc757fd72d68d1610 (diff)
Color Management: fix crash when displaying render preview if OCIO was disabled buildtime
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r--source/blender/imbuf/intern/colormanagement.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/imbuf/intern/colormanagement.c b/source/blender/imbuf/intern/colormanagement.c
index 6db45f0308a..d896395f647 100644
--- a/source/blender/imbuf/intern/colormanagement.c
+++ b/source/blender/imbuf/intern/colormanagement.c
@@ -565,6 +565,10 @@ void IMB_colormanagement_init(void)
}
}
+ if (config == NULL) {
+ config = OCIO_getDefaultConfig();
+ }
+
if (config) {
OCIO_setCurrentConfig(config);