From 004172de38d5483b715a5b13d06c2aa5dd3de3f5 Mon Sep 17 00:00:00 2001 From: Martijn Versteegh Date: Fri, 26 Nov 2021 10:56:58 +0100 Subject: Clarify a confusing comment. Affect and effect are too confusing for non-native english speakers (like me). Also BAKING_MASK_MARGIN doesn't exist anymore in the code. Reviewed By: sergey Differential Revision: https://developer.blender.org/D13361 --- source/blender/imbuf/intern/filter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/imbuf') diff --git a/source/blender/imbuf/intern/filter.c b/source/blender/imbuf/intern/filter.c index 343c8cd8f64..97d44af1315 100644 --- a/source/blender/imbuf/intern/filter.c +++ b/source/blender/imbuf/intern/filter.c @@ -422,9 +422,9 @@ static int check_pixel_assigned( /** * if alpha is zero, it checks surrounding pixels and averages color. sets new alphas to 1.0 - * - * When a mask is given, only effect pixels with a mask value of 1, - * defined as #BAKE_MASK_MARGIN in rendercore.c + * When a mask is given, the mask will be used instead of the alpha channel, where only + * pixels with a mask value of 0 will be written to, and only pixels with a mask value of 1 + * will be used for the average. The mask will be set to one for the pixels which were written. */ void IMB_filter_extend(struct ImBuf *ibuf, char *mask, int filter) { -- cgit v1.2.3