[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43204] branches/tile/source/blender/ compositor/nodes/COM_DifferenceMatteNode.cpp: TileBranch

Jeroen Bakker j.bakker at atmind.nl
Fri Jan 6 19:40:58 CET 2012


Revision: 43204
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43204
Author:   jbakker
Date:     2012-01-06 18:40:48 +0000 (Fri, 06 Jan 2012)
Log Message:
-----------
TileBranch
 * added preview to the DifferenceMatteNode

Modified Paths:
--------------
    branches/tile/source/blender/compositor/nodes/COM_DifferenceMatteNode.cpp

Modified: branches/tile/source/blender/compositor/nodes/COM_DifferenceMatteNode.cpp
===================================================================
--- branches/tile/source/blender/compositor/nodes/COM_DifferenceMatteNode.cpp	2012-01-06 17:32:20 UTC (rev 43203)
+++ branches/tile/source/blender/compositor/nodes/COM_DifferenceMatteNode.cpp	2012-01-06 18:40:48 UTC (rev 43204)
@@ -21,7 +21,6 @@
  */
 
 #include "COM_DifferenceMatteNode.h"
-#include "COM_ExecutionSystem.h"
 #include "BKE_node.h"
 #include "COM_DifferenceMatteOperation.h"
 #include "COM_SetAlphaOperation.h"
@@ -44,11 +43,10 @@
 	outputSocketMatte->relinkConnections(operationSet->getOutputSocket(0));
 	graph->addOperation(operationSet);
 
-	if (outputSocketImage->isConnected()) {
-		SetAlphaOperation * operation = new SetAlphaOperation();
-		addLink(graph, operationSet->getInputSocket(0)->getConnection()->getFromSocket(), operation->getInputSocket(0));
-		addLink(graph, operationSet->getOutputSocket(), operation->getInputSocket(1));
-		outputSocketImage->relinkConnections(operation->getOutputSocket());
-		graph->addOperation(operation);
-	}
+	SetAlphaOperation * operation = new SetAlphaOperation();
+	addLink(graph, operationSet->getInputSocket(0)->getConnection()->getFromSocket(), operation->getInputSocket(0));
+	addLink(graph, operationSet->getOutputSocket(), operation->getInputSocket(1));
+	outputSocketImage->relinkConnections(operation->getOutputSocket());
+	graph->addOperation(operation);
+	addPreviewOperation(graph, operation->getOutputSocket(), 5);
 }



More information about the Bf-blender-cvs mailing list