diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-03-20 22:01:41 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-03-20 22:01:41 +0400 |
commit | 1b9e17fb9a814799411778c8a8b51f981efcf0da (patch) | |
tree | 921ec22814974de18424a8a905a16c6bd7105a12 /source/blender/compositor/intern/COM_ExecutionSystem.cpp | |
parent | b5ac9639dc827c08255be32f312998a153f7f51c (diff) |
When using border rendering, use the same border for compositor
This makes compositing as fast as it's possible in this case.
The only thing is border render+crop will still give funcy
results. This is the next thing to be solved in compositor.
Diffstat (limited to 'source/blender/compositor/intern/COM_ExecutionSystem.cpp')
-rw-r--r-- | source/blender/compositor/intern/COM_ExecutionSystem.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/compositor/intern/COM_ExecutionSystem.cpp b/source/blender/compositor/intern/COM_ExecutionSystem.cpp index 2d87845d254..76381261576 100644 --- a/source/blender/compositor/intern/COM_ExecutionSystem.cpp +++ b/source/blender/compositor/intern/COM_ExecutionSystem.cpp @@ -95,6 +95,18 @@ ExecutionSystem::ExecutionSystem(RenderData *rd, bNodeTree *editingtree, bool re ExecutionGroup *executionGroup = this->m_groups[index]; 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 + */ + if ((rd->mode & R_BORDER) && !(rd->mode & R_CROP)) { + executionGroup->setRenderBorder(rd->border.xmin, rd->border.xmax, + rd->border.ymin, rd->border.ymax); + } + } + if (use_viewer_border) { executionGroup->setViewerBorder(viewer_border->xmin, viewer_border->xmax, viewer_border->ymin, viewer_border->ymax); |