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-09-12 21:00:03 +0300
committerManuel Castilla <manzanillawork@gmail.com>2021-09-12 21:00:03 +0300
commit313ea8a28e8a7a95d723fd4c46ab349ed08bea0f (patch)
tree994277f03e4efa6fd802a999c54910e5e2b188e5 /source/blender/compositor/operations/COM_PreviewOperation.cc
parenta0a9499a3a6bc8001c59c7b547ca7a7781415c9a (diff)
Compositor: Add support for canvas compositingtemp-compositor-canvas
This patch adds functionality for operations that require pixels translation or resizing on "Full Frame" mode, allowing to adjust their canvas within the output canvas. It fixes current cropping issues in translate, scale, rotate and transform nodes by adjusting their canvas to the result, instead of the input canvas. Only the scale node canvas is limited to the scene output resolution size for performance reasons as there are many operations that require their whole input to be rendered. Operations output buffer is still always on (0,0) position for easier image algorithm implementation, even when operation canvas is not.
Diffstat (limited to 'source/blender/compositor/operations/COM_PreviewOperation.cc')
-rw-r--r--source/blender/compositor/operations/COM_PreviewOperation.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/compositor/operations/COM_PreviewOperation.cc b/source/blender/compositor/operations/COM_PreviewOperation.cc
index 7b1dd89bd75..b6b04385f43 100644
--- a/source/blender/compositor/operations/COM_PreviewOperation.cc
+++ b/source/blender/compositor/operations/COM_PreviewOperation.cc
@@ -41,7 +41,7 @@ PreviewOperation::PreviewOperation(const ColorManagedViewSettings *viewSettings,
const unsigned int defaultHeight)
{
- this->addInputSocket(DataType::Color, ResizeMode::None);
+ this->addInputSocket(DataType::Color, ResizeMode::Align);
this->m_preview = nullptr;
this->m_outputBuffer = nullptr;
this->m_input = nullptr;