Fix T64651, T64658: image texture not set to non-color properly
The version check was wrong, only working for older files.
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
* \note Use #STRINGIFY() rather than defining with quotes.
|
||||
*/
|
||||
#define BLENDER_VERSION 280
|
||||
#define BLENDER_SUBVERSION 65
|
||||
#define BLENDER_SUBVERSION 66
|
||||
/** Several breakages with 280, e.g. collections vs layers. */
|
||||
#define BLENDER_MINVERSION 280
|
||||
#define BLENDER_MINSUBVERSION 0
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user