ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
This commit is contained in:
@@ -20,21 +20,22 @@
|
||||
#include "COM_ConvertOperation.h"
|
||||
#include "COM_ExecutionSystem.h"
|
||||
|
||||
void ConvertAlphaNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
void ConvertAlphaNode::convertToOperations(NodeConverter &converter,
|
||||
const CompositorContext & /*context*/) const
|
||||
{
|
||||
NodeOperation *operation = NULL;
|
||||
bNode *node = this->getbNode();
|
||||
NodeOperation *operation = NULL;
|
||||
bNode *node = this->getbNode();
|
||||
|
||||
/* value hardcoded in rna_nodetree.c */
|
||||
if (node->custom1 == 1) {
|
||||
operation = new ConvertPremulToStraightOperation();
|
||||
}
|
||||
else {
|
||||
operation = new ConvertStraightToPremulOperation();
|
||||
}
|
||||
/* value hardcoded in rna_nodetree.c */
|
||||
if (node->custom1 == 1) {
|
||||
operation = new ConvertPremulToStraightOperation();
|
||||
}
|
||||
else {
|
||||
operation = new ConvertStraightToPremulOperation();
|
||||
}
|
||||
|
||||
converter.addOperation(operation);
|
||||
converter.addOperation(operation);
|
||||
|
||||
converter.mapInputSocket(getInputSocket(0), operation->getInputSocket(0));
|
||||
converter.mapOutputSocket(getOutputSocket(0), operation->getOutputSocket());
|
||||
converter.mapInputSocket(getInputSocket(0), operation->getInputSocket(0));
|
||||
converter.mapOutputSocket(getOutputSocket(0), operation->getOutputSocket());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user