[Bf-blender-cvs] [fb6636c8124] temp_bmesh_multires: Sculpt dyntopo: fix bug with automasking being needlessly initialized

Joseph Eagar noreply at git.blender.org
Sun Jun 27 08:47:06 CEST 2021


Commit: fb6636c81248f6d4e0b78c84b22ac133ffef75d0
Author: Joseph Eagar
Date:   Sat Jun 26 23:46:47 2021 -0700
Branches: temp_bmesh_multires
https://developer.blender.org/rBfb6636c81248f6d4e0b78c84b22ac133ffef75d0

Sculpt dyntopo: fix bug with automasking being needlessly initialized

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

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 37ae4509a74..f3b03805b27 100644
--- a/source/blender/editors/sculpt_paint/sculpt_automasking.c
+++ b/source/blender/editors/sculpt_paint/sculpt_automasking.c
@@ -103,9 +103,9 @@ bool SCULPT_is_automasking_enabled(const Sculpt *sd, const SculptSession *ss, co
     return true;
   }
   if (SCULPT_is_automasking_mode_enabled(sd, br, BRUSH_AUTOMASKING_CONCAVITY)) {
-    return true;
-  }
-  if (br && br->concave_mask_factor > 0.0f) {
+    if (br && br->concave_mask_factor == 0.0f) {
+      return false;
+    }
     return true;
   }



More information about the Bf-blender-cvs mailing list