From 4a67368ddd710342b1a3591009604c10d4556f6a Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sat, 6 Sep 2025 16:52:51 +0200 Subject: [PATCH] Color Management: Assign interop ID to non-color data This one can not be handled with an alias because it is a role too. Pull Request: https://projects.blender.org/blender/blender/pulls/145837 --- .../opencolorio/intern/libocio/libocio_colorspace.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/blender/imbuf/opencolorio/intern/libocio/libocio_colorspace.cc b/source/blender/imbuf/opencolorio/intern/libocio/libocio_colorspace.cc index 10f0c7b5b34..e5eae8d6aa2 100644 --- a/source/blender/imbuf/opencolorio/intern/libocio/libocio_colorspace.cc +++ b/source/blender/imbuf/opencolorio/intern/libocio/libocio_colorspace.cc @@ -185,6 +185,14 @@ LibOCIOColorSpace::LibOCIOColorSpace(const int index, break; } } + + /* Special case that we can not handle as an alias, because it's a role too. */ + if (interop_id_.is_empty()) { + const char *data_name = ocio_config->getRoleColorSpace(OCIO_NAMESPACE::ROLE_DATA); + if (data_name && STREQ(ocio_color_space->getName(), data_name)) { + interop_id_ = "data"; + } + } } bool LibOCIOColorSpace::is_scene_linear() const