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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user