From e96b7c0092ea4d193ded1c1e16e5ff72009088e2 Mon Sep 17 00:00:00 2001 From: YimingWu Date: Thu, 28 Oct 2021 17:17:48 +0800 Subject: [PATCH] LineArt: Fix(unreported) Material mask panel logic The logic should be: show material mask panel if in_front is on, it was inverted unintentionally. --- source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c b/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c index 4411762aeea..fa31aec2b5b 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c @@ -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); }