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:
@@ -21,19 +21,20 @@
|
||||
|
||||
SwitchViewNode::SwitchViewNode(bNode *editorNode) : Node(editorNode)
|
||||
{
|
||||
/* pass */
|
||||
/* pass */
|
||||
}
|
||||
|
||||
void SwitchViewNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
|
||||
void SwitchViewNode::convertToOperations(NodeConverter &converter,
|
||||
const CompositorContext &context) const
|
||||
{
|
||||
NodeOperationOutput *result;
|
||||
const char *viewName = context.getViewName();
|
||||
bNode *bnode = this->getbNode();
|
||||
NodeOperationOutput *result;
|
||||
const char *viewName = context.getViewName();
|
||||
bNode *bnode = this->getbNode();
|
||||
|
||||
/* get the internal index of the socket with a matching name */
|
||||
int nr = BLI_findstringindex(&bnode->inputs, viewName, offsetof(bNodeSocket, name));
|
||||
nr = max(nr, 0);
|
||||
/* get the internal index of the socket with a matching name */
|
||||
int nr = BLI_findstringindex(&bnode->inputs, viewName, offsetof(bNodeSocket, name));
|
||||
nr = max(nr, 0);
|
||||
|
||||
result = converter.addInputProxy(getInputSocket(nr), false);
|
||||
converter.mapOutputSocket(getOutputSocket(0), result);
|
||||
result = converter.addInputProxy(getInputSocket(nr), false);
|
||||
converter.mapOutputSocket(getOutputSocket(0), result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user