Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Carlisle <carlisle.b3d@gmail.com>2021-09-29 01:45:53 +0300
committerAaron Carlisle <carlisle.b3d@gmail.com>2021-09-29 01:46:10 +0300
commite81533b25e6bcaf703d8b9961fec89eae62dcb9c (patch)
treeb6e1d526bddad39565fdb2502ae80369f1628057
parentf0f70729b10ecb633a0005bc9f70b62a595a43d7 (diff)
Cleanup: Simplify compositor Z Combine operation conversion
-rw-r--r--source/blender/compositor/nodes/COM_ZCombineNode.cc12
1 files changed, 4 insertions, 8 deletions
diff --git a/source/blender/compositor/nodes/COM_ZCombineNode.cc b/source/blender/compositor/nodes/COM_ZCombineNode.cc
index e29748dc317..9753e812a8b 100644
--- a/source/blender/compositor/nodes/COM_ZCombineNode.cc
+++ b/source/blender/compositor/nodes/COM_ZCombineNode.cc
@@ -64,18 +64,14 @@ void ZCombineNode::convertToOperations(NodeConverter &converter,
NodeOperation *maskoperation;
if (this->getbNode()->custom1) {
maskoperation = new MathGreaterThanOperation();
- converter.addOperation(maskoperation);
-
- converter.mapInputSocket(getInputSocket(1), maskoperation->getInputSocket(0));
- converter.mapInputSocket(getInputSocket(3), maskoperation->getInputSocket(1));
}
else {
maskoperation = new MathLessThanOperation();
- converter.addOperation(maskoperation);
-
- converter.mapInputSocket(getInputSocket(1), maskoperation->getInputSocket(0));
- converter.mapInputSocket(getInputSocket(3), maskoperation->getInputSocket(1));
}
+ converter.addOperation(maskoperation);
+
+ converter.mapInputSocket(getInputSocket(1), maskoperation->getInputSocket(0));
+ converter.mapInputSocket(getInputSocket(3), maskoperation->getInputSocket(1));
/* Step 2 anti alias mask bit of an expensive operation, but does the trick. */
AntiAliasOperation *antialiasoperation = new AntiAliasOperation();