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:
authorManuel Castilla <manzanillawork@gmail.com>2021-07-13 22:29:45 +0300
committerManuel Castilla <manzanillawork@gmail.com>2021-07-13 23:34:28 +0300
commit538f452ea97f93daa158a479dfed2b7c3973ec06 (patch)
treec1ac452613ea0ce516b3e69e1be4df0f8fb007f4 /source/blender/compositor/nodes/COM_TranslateNode.cc
parent2ea47057d33ebfa4ef5dfe687adc66464430e8f8 (diff)
Compositor: Full frame Translate node
Adds full frame implementation to this node operation. No functional changes.
Diffstat (limited to 'source/blender/compositor/nodes/COM_TranslateNode.cc')
-rw-r--r--source/blender/compositor/nodes/COM_TranslateNode.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/compositor/nodes/COM_TranslateNode.cc b/source/blender/compositor/nodes/COM_TranslateNode.cc
index 1b2ce341a66..3a3e98c3472 100644
--- a/source/blender/compositor/nodes/COM_TranslateNode.cc
+++ b/source/blender/compositor/nodes/COM_TranslateNode.cc
@@ -42,6 +42,7 @@ void TranslateNode::convertToOperations(NodeConverter &converter,
NodeOutput *outputSocket = this->getOutputSocket(0);
TranslateOperation *operation = new TranslateOperation();
+ operation->set_wrapping(data->wrap_axis);
if (data->relative) {
const RenderData *rd = context.getRenderData();
const float render_size_factor = context.getRenderPercentageAsFactor();
@@ -55,11 +56,8 @@ void TranslateNode::convertToOperations(NodeConverter &converter,
converter.mapInputSocket(inputXSocket, operation->getInputSocket(1));
converter.mapInputSocket(inputYSocket, operation->getInputSocket(2));
converter.mapOutputSocket(outputSocket, operation->getOutputSocket(0));
-
- /* FullFrame does not support using WriteBufferOperation.
- * TODO: Implement TranslateOperation with wrap support in FullFrame.
- */
if (data->wrap_axis && context.get_execution_model() != eExecutionModel::FullFrame) {
+ /* TODO: To be removed with tiled implementation. */
WriteBufferOperation *writeOperation = new WriteBufferOperation(DataType::Color);
WrapOperation *wrapOperation = new WrapOperation(DataType::Color);
wrapOperation->setMemoryProxy(writeOperation->getMemoryProxy());