[Bf-blender-cvs] [00bd631c7cc] master: Fix mask expand not properly supporting both inverse and keep mask modes being on at the same time.
Joseph Eagar
noreply at git.blender.org
Thu Oct 7 11:27:30 CEST 2021
Commit: 00bd631c7ccef79462f2904ecfb751d7b34ef91e
Author: Joseph Eagar
Date: Thu Oct 7 02:27:09 2021 -0700
Branches: master
https://developer.blender.org/rB00bd631c7ccef79462f2904ecfb751d7b34ef91e
Fix mask expand not properly supporting
both inverse and keep mask modes being on
at the same time.
===================================================================
M source/blender/editors/sculpt_paint/sculpt_expand.c
===================================================================
diff --git a/source/blender/editors/sculpt_paint/sculpt_expand.c b/source/blender/editors/sculpt_paint/sculpt_expand.c
index 40874375772..34da7daed65 100644
--- a/source/blender/editors/sculpt_paint/sculpt_expand.c
+++ b/source/blender/editors/sculpt_paint/sculpt_expand.c
@@ -1243,7 +1243,12 @@ static void sculpt_expand_mask_update_task_cb(void *__restrict userdata,
}
if (expand_cache->preserve) {
- new_mask = max_ff(new_mask, expand_cache->original_mask[vd.index]);
+ if (expand_cache->invert) {
+ new_mask = min_ff(new_mask, expand_cache->original_mask[vd.index]);
+ }
+ else {
+ new_mask = max_ff(new_mask, expand_cache->original_mask[vd.index]);
+ }
}
if (new_mask == initial_mask) {
More information about the Bf-blender-cvs
mailing list