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:
Diffstat (limited to 'source/blender/compositor/nodes/COM_GroupNode.cpp')
-rw-r--r--source/blender/compositor/nodes/COM_GroupNode.cpp27
1 files changed, 15 insertions, 12 deletions
diff --git a/source/blender/compositor/nodes/COM_GroupNode.cpp b/source/blender/compositor/nodes/COM_GroupNode.cpp
index ec06a3acd7e..e5255b6bb87 100644
--- a/source/blender/compositor/nodes/COM_GroupNode.cpp
+++ b/source/blender/compositor/nodes/COM_GroupNode.cpp
@@ -24,43 +24,46 @@
#include "COM_SocketProxyNode.h"
#include "COM_ExecutionSystemHelper.h"
-GroupNode::GroupNode(bNode *editorNode): Node(editorNode)
+GroupNode::GroupNode(bNode *editorNode) : Node(editorNode)
{
+ /* pass */
}
-void GroupNode::convertToOperations(ExecutionSystem *graph, CompositorContext * context)
+void GroupNode::convertToOperations(ExecutionSystem *graph, CompositorContext *context)
{
+ /* pass */
}
void GroupNode::ungroup(ExecutionSystem &system)
{
- vector<InputSocket*> &inputsockets = this->getInputSockets();
- vector<OutputSocket*> &outputsockets = this->getOutputSockets();
+ bNode *bnode = this->getbNode();
+ vector<InputSocket *> &inputsockets = this->getInputSockets();
+ vector<OutputSocket *> &outputsockets = this->getOutputSockets();
unsigned int index;
/* get the node list size _before_ adding proxy nodes, so they are available for linking */
int nodes_start = system.getNodes().size();
- for (index = 0 ; index < inputsockets.size();index ++) {
- InputSocket * inputSocket = inputsockets[index];
+ for (index = 0; index < inputsockets.size(); index++) {
+ InputSocket *inputSocket = inputsockets[index];
bNodeSocket *editorInput = inputSocket->getbNodeSocket();
if (editorInput->groupsock) {
- SocketProxyNode * proxy = new SocketProxyNode(this->getbNode(), editorInput, editorInput->groupsock);
+ SocketProxyNode *proxy = new SocketProxyNode(bnode, editorInput, editorInput->groupsock);
inputSocket->relinkConnections(proxy->getInputSocket(0), index, &system);
ExecutionSystemHelper::addNode(system.getNodes(), proxy);
}
}
- for (index = 0 ; index < outputsockets.size();index ++) {
- OutputSocket * outputSocket = outputsockets[index];
+ for (index = 0; index < outputsockets.size(); index++) {
+ OutputSocket *outputSocket = outputsockets[index];
bNodeSocket *editorOutput = outputSocket->getbNodeSocket();
if (editorOutput->groupsock) {
- SocketProxyNode * proxy = new SocketProxyNode(this->getbNode(), editorOutput->groupsock, editorOutput);
+ SocketProxyNode *proxy = new SocketProxyNode(bnode, editorOutput->groupsock, editorOutput);
outputSocket->relinkConnections(proxy->getOutputSocket(0));
ExecutionSystemHelper::addNode(system.getNodes(), proxy);
}
}
- bNodeTree *subtree = (bNodeTree*)this->getbNode()->id;
- ExecutionSystemHelper::addbNodeTree(system, nodes_start, subtree);
+ bNodeTree *subtree = (bNodeTree *)bnode->id;
+ ExecutionSystemHelper::addbNodeTree(system, nodes_start, subtree, bnode);
}