Fix T64561: wrong colorspace for Cycles displacement nodes
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Mon, 13 May 2019 21:40:45 +0000 (23:40 +0200)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Mon, 13 May 2019 21:40:45 +0000 (23:40 +0200)
intern/cycles/render/nodes.cpp

index 86cc203..22b3970 100644 (file)
@@ -268,7 +268,7 @@ ShaderNode *ImageTextureNode::clone() const
   node->slot = -1;
   node->is_float = -1;
   node->compress_as_srgb = false;
-  node->colorspace = u_colorspace_raw;
+  node->colorspace = colorspace;
   return node;
 }
 
@@ -453,7 +453,7 @@ ShaderNode *EnvironmentTextureNode::clone() const
   node->slot = -1;
   node->is_float = -1;
   node->compress_as_srgb = false;
-  node->colorspace = u_colorspace_raw;
+  node->colorspace = colorspace;
   return node;
 }