GP: Move Unlock Color to Adjustments panel
This option is not used all the time and can be moved to additional panel
This commit is contained in:
parent
2b628ba52b
commit
ac747c96d9
|
@ -188,6 +188,9 @@ class DATA_PT_gpencil_layer_optionpanel(LayerDataButtonsPanel, Panel):
|
|||
col = layout.row(align=True)
|
||||
col.prop(gpl, "line_change", text="Stroke Thickness")
|
||||
|
||||
col = layout.row(align=True)
|
||||
col.prop(gpl, "unlock_color", text="Unlock Color")
|
||||
|
||||
|
||||
class DATA_PT_gpencil_parentpanel(LayerDataButtonsPanel, Panel):
|
||||
bl_space_type = 'PROPERTIES'
|
||||
|
|
|
@ -866,7 +866,6 @@ class GPENCIL_UL_layer(UIList):
|
|||
row = layout.row(align=True)
|
||||
row.prop(gpl, "lock", text="", emboss=False)
|
||||
row.prop(gpl, "hide", text="", emboss=False)
|
||||
row.prop(gpl, "unlock_color", text="", emboss=False)
|
||||
subrow = row.row(align=True)
|
||||
subrow.prop(
|
||||
gpl,
|
||||
|
|
|
@ -1100,7 +1100,7 @@ static void rna_def_gpencil_layer(BlenderRNA *brna)
|
|||
/* Unlock colors */
|
||||
prop = RNA_def_property(srna, "unlock_color", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", GP_LAYER_UNLOCK_COLOR);
|
||||
RNA_def_property_ui_icon(prop, ICON_RESTRICT_COLOR_OFF, 1);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_ui_text(prop, "Unlock Color",
|
||||
"Unprotect selected colors from further editing and/or frame changes");
|
||||
RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, NULL);
|
||||
|
|
Loading…
Reference in New Issue