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_KeyingScreenNode.cpp')
-rw-r--r--source/blender/compositor/nodes/COM_KeyingScreenNode.cpp29
1 files changed, 15 insertions, 14 deletions
diff --git a/source/blender/compositor/nodes/COM_KeyingScreenNode.cpp b/source/blender/compositor/nodes/COM_KeyingScreenNode.cpp
index 562e14a0ec0..6a005b2b712 100644
--- a/source/blender/compositor/nodes/COM_KeyingScreenNode.cpp
+++ b/source/blender/compositor/nodes/COM_KeyingScreenNode.cpp
@@ -21,28 +21,29 @@
#include "COM_KeyingScreenOperation.h"
extern "C" {
-# include "DNA_movieclip_types.h"
+#include "DNA_movieclip_types.h"
}
KeyingScreenNode::KeyingScreenNode(bNode *editorNode) : Node(editorNode)
{
- /* pass */
+ /* pass */
}
-void KeyingScreenNode::convertToOperations(NodeConverter &converter, const CompositorContext &context) const
+void KeyingScreenNode::convertToOperations(NodeConverter &converter,
+ const CompositorContext &context) const
{
- bNode *editorNode = this->getbNode();
- MovieClip *clip = (MovieClip *) editorNode->id;
- NodeKeyingScreenData *keyingscreen_data = (NodeKeyingScreenData *) editorNode->storage;
+ bNode *editorNode = this->getbNode();
+ MovieClip *clip = (MovieClip *)editorNode->id;
+ NodeKeyingScreenData *keyingscreen_data = (NodeKeyingScreenData *)editorNode->storage;
- NodeOutput *outputScreen = this->getOutputSocket(0);
+ NodeOutput *outputScreen = this->getOutputSocket(0);
- // always connect the output image
- KeyingScreenOperation *operation = new KeyingScreenOperation();
- operation->setMovieClip(clip);
- operation->setTrackingObject(keyingscreen_data->tracking_object);
- operation->setFramenumber(context.getFramenumber());
- converter.addOperation(operation);
+ // always connect the output image
+ KeyingScreenOperation *operation = new KeyingScreenOperation();
+ operation->setMovieClip(clip);
+ operation->setTrackingObject(keyingscreen_data->tracking_object);
+ operation->setFramenumber(context.getFramenumber());
+ converter.addOperation(operation);
- converter.mapOutputSocket(outputScreen, operation->getOutputSocket());
+ converter.mapOutputSocket(outputScreen, operation->getOutputSocket());
}