Commit: 6f437aab4f2a9c560902b89e286dceb458b7006a
Author: Antonio Vazquez
Date:   Thu Nov 28 16:10:44 2019 +0100
Branches: greasepencil-object
https://developer.blender.org/rB6f437aab4f2a9c560902b89e286dceb458b7006a

GPencil: Fix icon for mask layer in Dopesheet

===================================================================

M       source/blender/editors/animation/anim_channels_defines.c

===================================================================

diff --git a/source/blender/editors/animation/anim_channels_defines.c 
b/source/blender/editors/animation/anim_channels_defines.c
index 9861a4ebc35..202edf85595 100644
--- a/source/blender/editors/animation/anim_channels_defines.c
+++ b/source/blender/editors/animation/anim_channels_defines.c
@@ -5073,7 +5073,7 @@ void ANIM_channel_draw_widgets(const bContext *C,
           prop = RNA_struct_find_property(&ptr, "mask_layer");
           gp_rna_path = RNA_path_from_ID_to_property(&ptr, prop);
           if (RNA_path_resolve_property(&id_ptr, gp_rna_path, &ptr, &prop)) {
-            icon = (gpl->onion_flag & GP_LAYER_USE_MASK) ? ICON_MOD_MASK : 
ICON_LAYER_ACTIVE;
+            icon = (gpl->flag & GP_LAYER_USE_MASK) ? ICON_MOD_MASK : 
ICON_LAYER_ACTIVE;
             uiDefAutoButR(
                 block, &ptr, prop, array_index, "", icon, offset, ymid, width, 
channel_height);
           }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to