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:
authorManuel Castilla <manzanillawork@gmail.com>2021-08-20 11:17:51 +0300
committerManuel Castilla <manzanillawork@gmail.com>2021-08-20 11:17:51 +0300
commitc03814f945ccbba0bcc4106068e3ce955486f475 (patch)
tree937217eed6fe5b4281bb4fafeb73c8885a96668a /source/blender/compositor/operations
parentfe53c04c51717621024fbf87642bd18c2d1676a0 (diff)
Compositor: Fix incorrect area of interest in variable bokeh blur
Diffstat (limited to 'source/blender/compositor/operations')
-rw-r--r--source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.cc b/source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.cc
index ec456bd96f1..6af6f5a6244 100644
--- a/source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.cc
+++ b/source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.cc
@@ -288,8 +288,8 @@ void VariableSizeBokehBlurOperation::get_area_of_interest(const int input_idx,
const float scalar = m_do_size_scale ? (max_dim / 100.0f) : 1.0f;
const int max_blur_scalar = m_maxBlur * scalar;
r_input_area.xmax = output_area.xmax + max_blur_scalar + 2;
- r_input_area.xmin = output_area.xmin - max_blur_scalar + 2;
- r_input_area.ymax = output_area.ymax + max_blur_scalar - 2;
+ r_input_area.xmin = output_area.xmin - max_blur_scalar - 2;
+ r_input_area.ymax = output_area.ymax + max_blur_scalar + 2;
r_input_area.ymin = output_area.ymin - max_blur_scalar - 2;
break;
}