Fix mask expand not properly supporting
both inverse and keep mask modes being on at the same time.
This commit is contained in:
parent
eadbacdbb0
commit
00bd631c7c
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue