UI: Update default mask icon #117467
|
@ -669,7 +669,7 @@ class GPENCIL_UL_layer(UIList):
|
|||
|
||||
row = layout.row(align=True)
|
||||
|
||||
icon_mask = 'MOD_MASK' if gpl.use_mask_layer else 'LAYER_ACTIVE'
|
||||
icon_mask = 'CLIPUV_DEHLT' if gpl.use_mask_layer else 'CLIPUV_HLT'
|
||||
|
||||
row.prop(gpl, "use_mask_layer", text="", icon=icon_mask, emboss=False)
|
||||
|
||||
|
|
|
@ -157,7 +157,7 @@ class TOPBAR_PT_gpencil_layers(Panel):
|
|||
srow = col.row(align=True)
|
||||
srow.prop(gpl, "opacity", text="Opacity", slider=True)
|
||||
srow.prop(gpl, "use_mask_layer", text="",
|
||||
icon='MOD_MASK' if gpl.use_mask_layer else 'LAYER_ACTIVE')
|
||||
icon='CLIPUV_DEHLT' if gpl.use_mask_layer else 'CLIPUV_HLT')
|
||||
|
||||
srow = col.row(align=True)
|
||||
srow.prop(gpl, "use_lights", text="Lights")
|
||||
|
|
|
@ -1969,7 +1969,7 @@ static void rna_def_gpencil_layer_mask(BlenderRNA *brna)
|
|||
|
||||
prop = RNA_def_property(srna, "invert", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, nullptr, "flag", GP_MASK_INVERT);
|
||||
RNA_def_property_ui_icon(prop, ICON_CLIPUV_HLT, -1);
|
||||
RNA_def_property_ui_icon(prop, ICON_SELECT_INTERSECT, -1);
|
||||
RNA_def_property_ui_text(prop, "Invert", "Invert mask");
|
||||
RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, "rna_GPencil_update");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue