diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-03-12 23:18:25 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-03-12 23:31:06 +0400 |
commit | 032b42d48de111d48c85a09118966691997d0374 (patch) | |
tree | a02784463a5094dd5383b1e0c89f0390823b6464 /source/blender/compositor/nodes/COM_CornerPinNode.cpp | |
parent | deef641878721438f39504aeef77c814500f37bb (diff) |
Code cleanup: de-duplicate switch statement, style edits
Diffstat (limited to 'source/blender/compositor/nodes/COM_CornerPinNode.cpp')
-rw-r--r-- | source/blender/compositor/nodes/COM_CornerPinNode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/compositor/nodes/COM_CornerPinNode.cpp b/source/blender/compositor/nodes/COM_CornerPinNode.cpp index 3115be8b178..1f4f485f90a 100644 --- a/source/blender/compositor/nodes/COM_CornerPinNode.cpp +++ b/source/blender/compositor/nodes/COM_CornerPinNode.cpp @@ -47,7 +47,7 @@ void CornerPinNode::convertToOperations(ExecutionSystem *graph, CompositorContex input_image->relinkConnections(warp_image_operation->getInputSocket(0), 0, graph); for (int i = 0; i < 4; ++i) { int node_index = node_corner_index[i]; - getInputSocket(node_index)->relinkConnections(warp_image_operation->getInputSocket(i+1), + getInputSocket(node_index)->relinkConnections(warp_image_operation->getInputSocket(i + 1), node_index, graph); } output_warped_image->relinkConnections(warp_image_operation->getOutputSocket()); @@ -59,7 +59,7 @@ void CornerPinNode::convertToOperations(ExecutionSystem *graph, CompositorContex /* connect mask op inputs to the same sockets as the warp image op */ for (int i = 0; i < 4; ++i) addLink(graph, - warp_image_operation->getInputSocket(i+1)->getConnection()->getFromSocket(), + warp_image_operation->getInputSocket(i + 1)->getConnection()->getFromSocket(), plane_mask_operation->getInputSocket(i)); output_plane->relinkConnections(plane_mask_operation->getOutputSocket()); |