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:
authorSergey Sharybin <sergey.vfx@gmail.com>2013-03-09 17:44:09 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-03-09 17:44:09 +0400
commit964cead5b1826f859ac3371ad7f0d9f4665c229f (patch)
tree7e60940f93c82e474e6f35cc1b2112828f5f5c92 /source/blender/compositor/intern
parentb2397db100fe182edc67d297fea4584ed6963495 (diff)
Fix for recent compo border commit
Viewer operations shall be aware of border as well, otherwise CPU would be busy for a while full compo isn't done for just a small preview image in a node.
Diffstat (limited to 'source/blender/compositor/intern')
-rw-r--r--source/blender/compositor/intern/COM_ExecutionGroup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/compositor/intern/COM_ExecutionGroup.cpp b/source/blender/compositor/intern/COM_ExecutionGroup.cpp
index 0868fccceaa..6d01e2f7824 100644
--- a/source/blender/compositor/intern/COM_ExecutionGroup.cpp
+++ b/source/blender/compositor/intern/COM_ExecutionGroup.cpp
@@ -591,7 +591,7 @@ void ExecutionGroup::setViewerBorder(float xmin, float xmax, float ymin, float y
{
NodeOperation *operation = this->getOutputNodeOperation();
- if (operation->isViewerOperation()) {
+ if (operation->isViewerOperation() || operation->isPreviewOperation()) {
BLI_rcti_init(&this->m_viewerBorder, xmin * this->m_width, xmax * this->m_width,
ymin * this->m_height, ymax * this->m_height);
}