WIP: Issue Sculpt Mode: Cavity Inverted consistency #102437 #105718

Draft
ProCrow wants to merge 1 commits from ProCrow/blender:my-feature into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
2 changed files with 3 additions and 4 deletions

View File

@ -7882,10 +7882,9 @@ class VIEW3D_PT_sculpt_automasking(Panel):
props = row.operator("sculpt.mask_from_cavity", text="Create Mask")
props.settings_source = "SCENE"
col.prop(sculpt, "use_automasking_cavity_inverted", text="Cavity (inverted)")
if is_cavity_active:
col = layout.column(align=True)
col.prop(sculpt, "use_automasking_cavity_inverted", text="Inverted")
col.prop(sculpt, "automasking_cavity_factor", text="Factor")
col.prop(sculpt, "automasking_cavity_blur_steps", text="Blur")

View File

@ -569,7 +569,7 @@ static void rna_Sculpt_automasking_invert_cavity_set(PointerRNA *ptr, bool val)
Sculpt *sd = (Sculpt *)ptr->data;
if (val) {
sd->automasking_flags &= ~BRUSH_AUTOMASKING_CAVITY_NORMAL;
sd->automasking_flags |= BRUSH_AUTOMASKING_CAVITY_NORMAL;
sd->automasking_flags |= BRUSH_AUTOMASKING_CAVITY_INVERTED;
}
else {
@ -582,11 +582,11 @@ static void rna_Sculpt_automasking_cavity_set(PointerRNA *ptr, bool val)
Sculpt *sd = (Sculpt *)ptr->data;
if (val) {
sd->automasking_flags &= ~BRUSH_AUTOMASKING_CAVITY_INVERTED;
sd->automasking_flags |= BRUSH_AUTOMASKING_CAVITY_NORMAL;
}
else {
sd->automasking_flags &= ~BRUSH_AUTOMASKING_CAVITY_NORMAL;
sd->automasking_flags &= ~BRUSH_AUTOMASKING_CAVITY_INVERTED;
}
}
#else