LineArt: Fix(unreported) Material mask panel logic

The logic should be: show material mask panel if in_front is on,
it was inverted unintentionally.
This commit is contained in:
YimingWu 2021-10-28 17:17:48 +08:00
parent ddb4eb8a89
commit e96b7c0092
1 changed files with 1 additions and 1 deletions

View File

@ -478,7 +478,7 @@ static void material_mask_panel_draw_header(const bContext *UNUSED(C), Panel *pa
const bool show_in_front = RNA_boolean_get(&ob_ptr, "show_in_front");
uiLayoutSetEnabled(layout, !is_baked);
uiLayoutSetActive(layout, (!show_in_front) && anything_showing_through(ptr));
uiLayoutSetActive(layout, show_in_front && anything_showing_through(ptr));
uiItemR(layout, ptr, "use_material_mask", 0, IFACE_("Material Mask"), ICON_NONE);
}