Fix for recent compo border commit
authorSergey Sharybin <sergey.vfx@gmail.com>
Sat, 9 Mar 2013 13:44:09 +0000 (13:44 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Sat, 9 Mar 2013 13:44:09 +0000 (13:44 +0000)
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.

source/blender/compositor/intern/COM_ExecutionGroup.cpp

index 0868fcc..6d01e2f 100644 (file)
@@ -591,7 +591,7 @@ void ExecutionGroup::setViewerBorder(float xmin, float xmax, float ymin, float y
 {
        NodeOperation *operation = this->getOutputNodeOperation();
 
 {
        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);
        }
                BLI_rcti_init(&this->m_viewerBorder, xmin * this->m_width, xmax * this->m_width,
                              ymin * this->m_height, ymax * this->m_height);
        }