Fix #114094: Mask by Color brush has stopped working
Caused by 97f2b01ea9
.
Above commit refactored code in a way that it was always early out
(always comparing the current mask value to itself and not the new mask
value).
Pull Request: https://projects.blender.org/blender/blender/pulls/114101
This commit is contained in:
parent
489d07de69
commit
a48d4184b5
|
@ -748,7 +748,7 @@ static void do_mask_by_color_contiguous_update_node(Object *ob,
|
|||
const float new_mask = mask_by_color_floodfill[vd.index];
|
||||
const float mask = sculpt_mask_by_color_final_mask_get(
|
||||
current_mask, new_mask, invert, preserve_mask);
|
||||
if (current_mask == current_mask) {
|
||||
if (current_mask == mask) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -861,7 +861,7 @@ static void do_mask_by_color_task(Object *ob,
|
|||
const float new_mask = sculpt_mask_by_color_delta_get(active_color, col, threshold, invert);
|
||||
const float mask = sculpt_mask_by_color_final_mask_get(
|
||||
current_mask, new_mask, invert, preserve_mask);
|
||||
if (current_mask == *vd.mask) {
|
||||
if (current_mask == mask) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue