UI: Gray out Scene Auto-Masking option if equivalent Brush option is used #102971 #106126

Open
Henry-Chang wants to merge 11 commits from Henry-Chang/blender:gray-out-automasking into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 4 additions and 1 deletions
Showing only changes of commit 9eb9249468 - Show all commits

View File

@ -903,7 +903,10 @@ static uiTooltipData *ui_tooltip_data_from_button_or_extra_icon(bContext *C,
bool disabled_msg_free = false;
/* If operator poll check failed, it can give pretty precise info why. */
if (optype) {
if (strcmp(rna_struct.strinfo, "SCULPT_OT_mask_from_cavity") == 0 || strstr(rna_prop.strinfo, "automasking")) {
disabled_msg = "The active brush already has the same auto-masking enabled.";
}
else if (optype) {
const wmOperatorCallContext opcontext = extra_icon ? extra_icon->optype_params->opcontext :
but->opcontext;
wmOperatorCallParams call_params{};