[Bf-blender-cvs] [390bc05] master: Fix second part of T45987: Node preview was still using wrong color space

Sergey Sharybin noreply at git.blender.org
Wed Sep 2 19:46:11 CEST 2015


Commit: 390bc05b328d6fe55241f7ca8d2b7e7a28d198e8
Author: Sergey Sharybin
Date:   Wed Sep 2 22:45:39 2015 +0500
Branches: master
https://developer.blender.org/rB390bc05b328d6fe55241f7ca8d2b7e7a28d198e8

Fix second part of T45987: Node preview was still using wrong color space

===================================================================

M	source/blender/compositor/nodes/COM_ChannelMatteNode.cpp

===================================================================

diff --git a/source/blender/compositor/nodes/COM_ChannelMatteNode.cpp b/source/blender/compositor/nodes/COM_ChannelMatteNode.cpp
index aa93016..cc57327 100644
--- a/source/blender/compositor/nodes/COM_ChannelMatteNode.cpp
+++ b/source/blender/compositor/nodes/COM_ChannelMatteNode.cpp
@@ -88,10 +88,10 @@ void ChannelMatteNode::convertToOperations(NodeConverter &converter, const Compo
 		converter.addOperation(inv_convert);
 		converter.addLink(operationAlpha->getOutputSocket(0), inv_convert->getInputSocket(0));
 		converter.mapOutputSocket(outputSocketImage, inv_convert->getOutputSocket());
+		converter.addPreview(inv_convert->getOutputSocket());
 	}
 	else {
 		converter.mapOutputSocket(outputSocketImage, operationAlpha->getOutputSocket());
+		converter.addPreview(operationAlpha->getOutputSocket());
 	}
-
-	converter.addPreview(operationAlpha->getOutputSocket());
 }




More information about the Bf-blender-cvs mailing list