Fix for relative blur size for non-fast gaussian blur methods.
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 4 Jun 2012 10:51:00 +0000 (10:51 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 4 Jun 2012 10:51:00 +0000 (10:51 +0000)
Call base blur's initExecution from GaussianBokehBlurOperation and GaussianXBlurOperation

source/blender/compositor/operations/COM_GaussianBokehBlurOperation.cpp
source/blender/compositor/operations/COM_GaussianXBlurOperation.cpp

index b5d175729f359965d0361dd12e1f736a880d4322..642a28627bdde939140e820797835dcb0b63ea7f 100644 (file)
@@ -43,6 +43,8 @@ void *GaussianBokehBlurOperation::initializeTileData(rcti *rect, MemoryBuffer **
 
 void GaussianBokehBlurOperation::initExecution()
 {
+       BlurBaseOperation::initExecution();
+
        if (this->sizeavailable) {
                updateGauss(NULL);
        }
index 121bbbd45a0093a6a11a70dc5bf43af135496474..852754416f45563f56d4afae6c6c8b8ef5cde9fa 100644 (file)
@@ -45,6 +45,8 @@ void *GaussianXBlurOperation::initializeTileData(rcti *rect, MemoryBuffer **memo
 
 void GaussianXBlurOperation::initExecution()
 {
+       BlurBaseOperation::initExecution();
+
        if (this->sizeavailable) {
                float rad = size*this->data->sizex;
                if (rad<1)