Color Management: fallback to stub ocio implementation in cases when
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 4 Oct 2012 13:39:08 +0000 (13:39 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 4 Oct 2012 13:39:08 +0000 (13:39 +0000)
commitef107d1a4d75ffc5645505867efec6b39b114d50
tree618615b28006e4c8a6898d9f140ce37fc90bbb09
parentd8144ef0f57bfba6973b7de34fe8238ab88707cc
Color Management: fallback to stub ocio implementation in cases when
ocio configuration file failed to load

This solves issues with infinite NULL-checks to prevent crashes in
such situations. Currently only happens if there's no configuration
file at all, but could be tweaked further to fallback if this file
isn't usable by blender.
intern/opencolorio/CMakeLists.txt
intern/opencolorio/SConscript
intern/opencolorio/fallback_impl.cc [moved from intern/opencolorio/ocio_capi_stub.cpp with 55% similarity]
intern/opencolorio/ocio_capi.cc [new file with mode: 0644]
intern/opencolorio/ocio_capi.h
intern/opencolorio/ocio_impl.cc [moved from intern/opencolorio/ocio_capi.cpp with 67% similarity]
intern/opencolorio/ocio_impl.h [new file with mode: 0644]
source/blender/imbuf/intern/colormanagement.c