One more null ptr check

This commit is contained in:
Joseph Eagar 2021-04-27 09:07:00 -07:00
parent 9fab16f0f3
commit 815d77192f
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ bool SCULPT_is_automasking_enabled(const Sculpt *sd, const SculptSession *ss, co
if (SCULPT_is_automasking_mode_enabled(sd, br, BRUSH_AUTOMASKING_CONCAVITY)) {
return true;
}
if (br->concave_mask_factor > 0.0f) {
if (br && br->concave_mask_factor > 0.0f) {
return true;
}