WIP: Issue Sculpt Mode: Cavity Inverted consistency #102437 #105718
|
@ -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")
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue