diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-03-21 19:26:41 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-03-21 19:26:41 +0400 |
commit | f3db38de56a123cf27fa8f7accb46b22027e6a82 (patch) | |
tree | 5ce9b10fce5ae05134999e8d09445bb8b593765f /source/blender/compositor/intern/COM_ExecutionSystem.cpp | |
parent | 0b40266afcacdcb5000194788584602c42d0bf74 (diff) |
Render border + crop will be handled correct in compositor now
This commit simply implements mapping from centered cropped canvas
to a full-frame coordinates, so operations like alpha-overing render
result on top of image will be properly aligned.
Diffstat (limited to 'source/blender/compositor/intern/COM_ExecutionSystem.cpp')
-rw-r--r-- | source/blender/compositor/intern/COM_ExecutionSystem.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/compositor/intern/COM_ExecutionSystem.cpp b/source/blender/compositor/intern/COM_ExecutionSystem.cpp index 76381261576..450d1b03917 100644 --- a/source/blender/compositor/intern/COM_ExecutionSystem.cpp +++ b/source/blender/compositor/intern/COM_ExecutionSystem.cpp @@ -96,10 +96,8 @@ ExecutionSystem::ExecutionSystem(RenderData *rd, bNodeTree *editingtree, bool re executionGroup->determineResolution(resolution); if (rendering) { - /* TODO: would be nice to support cropping as well, but for now - * don't use border for compo when crop is enabled, - * otherwise area of interest will be a way off from rendered - * stuff + /* case when cropping to render border happens is handled in + * compositor output and render layer nodes */ if ((rd->mode & R_BORDER) && !(rd->mode & R_CROP)) { executionGroup->setRenderBorder(rd->border.xmin, rd->border.xmax, |