Color management: When look is applied, we can not consider spaces to match
This should fix T52812 after merge to blender2.8.
This commit is contained in:
parent
d0d9360a66
commit
a6b156bf57
Notes:
blender-bot
2024-04-11 14:26:06 +02:00
Referenced by issue #52812, Color difference between viewport and OpenGL render.
|
@ -1522,6 +1522,10 @@ static bool is_ibuf_rect_in_display_space(ImBuf *ibuf, const ColorManagedViewSet
|
|||
{
|
||||
const char *from_colorspace = ibuf->rect_colorspace->name;
|
||||
const char *to_colorspace = IMB_colormanagement_get_display_colorspace_name(view_settings, display_settings);
|
||||
ColorManagedLook *look_descr = colormanage_look_get_named(view_settings->look);
|
||||
if (look_descr != NULL && !STREQ(look_descr->process_space, "")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (to_colorspace && STREQ(from_colorspace, to_colorspace))
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue