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
This commit is contained in:
Brecht Van Lommel
2025-09-06 16:52:51 +02:00
parent 8ac0a1541b
commit 4a67368ddd

View File

@@ -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