Fix #146042: Fix when view transform is set to non-existing color space

Some of the color space settings are not validated on load to be set to
a valid values. To deal with those cases better bake it so color management
module does not make assumption on validness of the input data.

This is an oversight in the !140729.

Pull Request: https://projects.blender.org/blender/blender/pulls/146084
This commit is contained in:
Sergey Sharybin
2025-09-11 14:09:20 +02:00
committed by Sergey Sharybin
parent ad6892832f
commit a927c98d5a

View File

@@ -2917,7 +2917,7 @@ bool IMB_colormanagement_display_is_wide_gamut(const ColorManagedDisplaySettings
int IMB_colormanagement_view_get_id_by_name(const char *name)
{
return g_all_view_names.index_of(name);
return g_all_view_names.index_of_try(name);
}
const char *IMB_colormanagement_view_get_name_by_id(const int index)