diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2020-04-09 23:56:36 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2020-04-09 23:56:36 +0300 |
commit | d85e2beb679520def6dd7f13f5acb1ae795b0888 (patch) | |
tree | 243f9ecf58ae430ac70ad32cd7460f42ed6d1321 /source | |
parent | d7273f087dbf351d8520ac974190f5da335be429 (diff) |
Fix T75526: Color Management Look saved in 2.82a resets in 2.83
Missing versioning after `rB9f4b090eec39`.
Differential Revision: https://developer.blender.org/D7388
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenloader/intern/versioning_280.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c index ff3aef4588f..5c99760dc9c 100644 --- a/source/blender/blenloader/intern/versioning_280.c +++ b/source/blender/blenloader/intern/versioning_280.c @@ -4405,6 +4405,17 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain) } if (!MAIN_VERSION_ATLEAST(bmain, 283, 3)) { + /* Color Management Look. */ + for (Scene *scene = bmain->scenes.first; scene; scene = scene->id.next) { + ColorManagedViewSettings *view_settings; + view_settings = &scene->view_settings; + if (BLI_str_startswith(view_settings->look, "Filmic - ")) { + STRNCPY(view_settings->look, view_settings->look + strlen("Filmic - ")); + } + else if (BLI_str_startswith(view_settings->look, "Standard - ")) { + STRNCPY(view_settings->look, view_settings->look + strlen("Standard - ")); + } + } /* Sequencer Tool region */ do_versions_area_ensure_tool_region(bmain, SPACE_SEQ, RGN_FLAG_HIDDEN); |