[Bf-blender-cvs] [dfc9bbd6172] compositor-full-frame: Compositor: Fix areas of interest outside operations bounds
Manuel Castilla
noreply at git.blender.org
Mon May 31 11:31:51 CEST 2021
Commit: dfc9bbd6172aa41f4696a17afe65025a24a9ecb2
Author: Manuel Castilla
Date: Mon May 31 11:09:43 2021 +0200
Branches: compositor-full-frame
https://developer.blender.org/rBdfc9bbd6172aa41f4696a17afe65025a24a9ecb2
Compositor: Fix areas of interest outside operations bounds
They should be cropped instead of clamped.
===================================================================
M source/blender/compositor/intern/COM_FullFrameExecutionModel.cc
===================================================================
diff --git a/source/blender/compositor/intern/COM_FullFrameExecutionModel.cc b/source/blender/compositor/intern/COM_FullFrameExecutionModel.cc
index 86dd78e0f91..b39600f12de 100644
--- a/source/blender/compositor/intern/COM_FullFrameExecutionModel.cc
+++ b/source/blender/compositor/intern/COM_FullFrameExecutionModel.cc
@@ -198,9 +198,8 @@ void FullFrameExecutionModel::determine_areas_to_render(NodeOperation *operation
rcti input_area;
operation->get_area_of_interest(input_op, render_area, input_area);
- /* Ensure area of interest is within operation bounds. */
- int dummy_offset[2];
- BLI_rcti_clamp(&input_area, &input_op_rect, dummy_offset);
+ /* Ensure area of interest is within operation bounds, cropping areas outside. */
+ BLI_rcti_isect(&input_area, &input_op_rect, &input_area);
determine_areas_to_render(input_op, input_area);
}
More information about the Bf-blender-cvs
mailing list