Fix #105052: crash with sculpt automasking topology and mesh filter tool

This commit is contained in:
Brecht Van Lommel
2023-03-17 20:32:15 +01:00
parent ef4485720c
commit 97b0d8f72b

View File

@@ -179,6 +179,10 @@ static float sculpt_automasking_normal_calc(SculptSession *ss,
static bool sculpt_automasking_is_constrained_by_radius(const Brush *br)
{
if (br == nullptr) {
return false;
}
/* 2D falloff is not constrained by radius. */
if (br->falloff_shape == PAINT_FALLOFF_SHAPE_TUBE) {
return false;