diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-16 06:17:22 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-16 06:19:35 +0300 |
commit | f2144cf298aab7fd173025e490fa9e98b7661a88 (patch) | |
tree | 3213a3cfbea5b7a5d45bea4b03576805ec2d8c8a /source/blender/blenloader | |
parent | 4a766732e63c9c705b264b8d433db53b74db98db (diff) |
Fix T64651, T64658: image texture not set to non-color properly
The version check was wrong, only working for older files.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/versioning_cycles.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/versioning_cycles.c b/source/blender/blenloader/intern/versioning_cycles.c index 7616e62af9f..ace90350a21 100644 --- a/source/blender/blenloader/intern/versioning_cycles.c +++ b/source/blender/blenloader/intern/versioning_cycles.c @@ -400,7 +400,7 @@ void blo_do_versions_cycles(FileData *UNUSED(fd), Library *UNUSED(lib), Main *bm void do_versions_after_linking_cycles(Main *bmain) { - if (!MAIN_VERSION_ATLEAST(bmain, 280, 5)) { + if (!MAIN_VERSION_ATLEAST(bmain, 280, 66)) { /* Shader node tree changes. After lib linking so we have all the typeinfo * pointers and updated sockets and we can use the high level node API to * manipulate nodes. */ @@ -443,7 +443,7 @@ void do_versions_after_linking_cycles(Main *bmain) ambient_occlusion_node_relink(ntree); } - if (!MAIN_VERSION_ATLEAST(bmain, 280, 63)) { + if (!MAIN_VERSION_ATLEAST(bmain, 280, 66)) { for (bNode *node = ntree->nodes.first; node; node = node->next) { image_node_colorspace(node); } |