diff options
author | YimingWu <xp8110@outlook.com> | 2021-10-28 12:17:48 +0300 |
---|---|---|
committer | YimingWu <xp8110@outlook.com> | 2021-10-28 14:38:45 +0300 |
commit | e96b7c0092ea4d193ded1c1e16e5ff72009088e2 (patch) | |
tree | 37e7533e867d208b735f598acb198164d52ad0a0 /source/blender/gpencil_modifiers | |
parent | ddb4eb8a897eeb78c3eb9b975ca77a693a964ac1 (diff) |
LineArt: Fix(unreported) Material mask panel logic
The logic should be: show material mask panel if in_front is on,
it was inverted unintentionally.
Diffstat (limited to 'source/blender/gpencil_modifiers')
-rw-r--r-- | source/blender/gpencil_modifiers/intern/MOD_gpencillineart.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |