Fix #104022: Expand Mask inverted fill

A small new feature that clears the mask completely on the current mesh island.
Closes #104022

When hovering outside the object the Expand operator is running on, it will get floodfilled with the mask/face set.

Previously, when the Invert option was used, it wouldn't also clear the mask/face set when hovering outside the object.

Pull Request: https://projects.blender.org/blender/blender/pulls/111665
This commit is contained in:
Petar Dosev
2023-08-30 09:28:46 +02:00
committed by Sergey Sharybin
parent e1b72e569d
commit 5894ab2e07

View File

@@ -233,6 +233,9 @@ static bool sculpt_expand_state_get(SculptSession *ss,
}
if (expand_cache->all_enabled) {
if (expand_cache->invert) {
return false;
}
return true;
}
@@ -279,6 +282,9 @@ static bool sculpt_expand_face_state_get(SculptSession *ss, ExpandCache *expand_
}
if (expand_cache->all_enabled) {
if (expand_cache->invert) {
return false;
}
return true;
}