diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-06-16 18:11:30 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-06-16 18:11:30 +0400 |
commit | e946fa443b5aab057bfe5f40f8bb4f346c84331e (patch) | |
tree | 96856b4563008246fb8249d581558788700ab960 /source/blender/compositor/operations | |
parent | f6ab6514a38fbb976a283b88e07feee583a5266e (diff) |
fix for errors in last commit (dilate/erode has no input)
Diffstat (limited to 'source/blender/compositor/operations')
-rw-r--r-- | source/blender/compositor/operations/COM_GaussianAlphaXBlurOperation.cpp | 5 | ||||
-rw-r--r-- | source/blender/compositor/operations/COM_GaussianAlphaYBlurOperation.cpp | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/source/blender/compositor/operations/COM_GaussianAlphaXBlurOperation.cpp b/source/blender/compositor/operations/COM_GaussianAlphaXBlurOperation.cpp index 5b042ae9d40..4a3fa7d5c12 100644 --- a/source/blender/compositor/operations/COM_GaussianAlphaXBlurOperation.cpp +++ b/source/blender/compositor/operations/COM_GaussianAlphaXBlurOperation.cpp @@ -158,6 +158,7 @@ void GaussianAlphaXBlurOperation::deinitExecution() bool GaussianAlphaXBlurOperation::determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output) { rcti newInput; +#if 0 /* until we add size input */ rcti sizeInput; sizeInput.xmin = 0; sizeInput.ymin = 0; @@ -168,7 +169,9 @@ bool GaussianAlphaXBlurOperation::determineDependingAreaOfInterest(rcti *input, if (operation->determineDependingAreaOfInterest(&sizeInput, readOperation, output)) { return true; } - else { + else +#endif + { if (this->sizeavailable && this->gausstab != NULL) { newInput.xmax = input->xmax + rad; newInput.xmin = input->xmin - rad; diff --git a/source/blender/compositor/operations/COM_GaussianAlphaYBlurOperation.cpp b/source/blender/compositor/operations/COM_GaussianAlphaYBlurOperation.cpp index 73dabda1e3f..f84f4e3b094 100644 --- a/source/blender/compositor/operations/COM_GaussianAlphaYBlurOperation.cpp +++ b/source/blender/compositor/operations/COM_GaussianAlphaYBlurOperation.cpp @@ -155,17 +155,20 @@ void GaussianAlphaYBlurOperation::deinitExecution() bool GaussianAlphaYBlurOperation::determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output) { rcti newInput; +#if 0 /* until we add size input */ rcti sizeInput; sizeInput.xmin = 0; sizeInput.ymin = 0; sizeInput.xmax = 5; sizeInput.ymax = 5; - + NodeOperation *operation = this->getInputOperation(1); if (operation->determineDependingAreaOfInterest(&sizeInput, readOperation, output)) { return true; } - else { + else +#endif + { if (this->sizeavailable && this->gausstab != NULL) { newInput.xmax = input->xmax; newInput.xmin = input->xmin; |