[Bf-blender-cvs] [815d77192f6] temp_bmesh_multires: One more null ptr check

Joseph Eagar noreply at git.blender.org
Tue Apr 27 18:07:10 CEST 2021


Commit: 815d77192f6308bc58146fba6ad3e9823b742132
Author: Joseph Eagar
Date:   Tue Apr 27 09:07:00 2021 -0700
Branches: temp_bmesh_multires
https://developer.blender.org/rB815d77192f6308bc58146fba6ad3e9823b742132

One more null ptr check

===================================================================

M	source/blender/editors/sculpt_paint/sculpt_automasking.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/sculpt_automasking.c b/source/blender/editors/sculpt_paint/sculpt_automasking.c
index 1a94e564e14..e5a5b9786de 100644
--- a/source/blender/editors/sculpt_paint/sculpt_automasking.c
+++ b/source/blender/editors/sculpt_paint/sculpt_automasking.c
@@ -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;
   }



More information about the Bf-blender-cvs mailing list