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,18 +20,19 @@
|
||||
|
||||
SwitchNode::SwitchNode(bNode *editorNode) : Node(editorNode)
|
||||
{
|
||||
/* pass */
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void SwitchNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
|
||||
void SwitchNode::convertToOperations(NodeConverter &converter,
|
||||
const CompositorContext & /*context*/) const
|
||||
{
|
||||
bool condition = this->getbNode()->custom1;
|
||||
bool condition = this->getbNode()->custom1;
|
||||
|
||||
NodeOperationOutput *result;
|
||||
if (!condition)
|
||||
result = converter.addInputProxy(getInputSocket(0), false);
|
||||
else
|
||||
result = converter.addInputProxy(getInputSocket(1), false);
|
||||
NodeOperationOutput *result;
|
||||
if (!condition)
|
||||
result = converter.addInputProxy(getInputSocket(0), false);
|
||||
else
|
||||
result = converter.addInputProxy(getInputSocket(1), false);
|
||||
|
||||
converter.mapOutputSocket(getOutputSocket(0), result);
|
||||
converter.mapOutputSocket(getOutputSocket(0), result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user