GP: Add new Userprefs parameter to reverse layer list
This allows to configure the system as any other 2D software with the layers in a Top/Down order.
This commit is contained in:
parent
d12b3767f8
commit
18f1175940
@ -279,7 +279,7 @@ class USERPREF_PT_edit(Panel):
|
||||
col.prop(edit, "grease_pencil_euclidean_distance", text="Euclidean Distance")
|
||||
col.separator()
|
||||
col.prop(edit, "use_grease_pencil_simplify_stroke", text="Simplify Stroke")
|
||||
col.separator()
|
||||
col.prop(edit, "use_grease_pencil_reverse_layers", text="Layers order Top-Down")
|
||||
col.separator()
|
||||
col.separator()
|
||||
col.separator()
|
||||
|
@ -883,8 +883,9 @@ typedef enum eText_Draw_Options {
|
||||
/* Grease Pencil Settings.
|
||||
* UserDef.gp_settings */
|
||||
typedef enum eGP_UserdefSettings {
|
||||
GP_PAINT_DOSMOOTH = (1 << 0),
|
||||
GP_PAINT_DOSIMPLIFY = (1 << 1),
|
||||
GP_PAINT_DOSMOOTH = (1 << 0),
|
||||
GP_PAINT_DOSIMPLIFY = (1 << 1),
|
||||
GP_PAINT_REVERSE_LAYERS = (1 << 2),
|
||||
} eGP_UserdefSettings;
|
||||
|
||||
enum {
|
||||
|
@ -3994,6 +3994,11 @@ static void rna_def_userdef_edit(BlenderRNA *brna)
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "gp_settings", GP_PAINT_DOSIMPLIFY);
|
||||
RNA_def_property_ui_text(prop, "Grease Pencil Simplify Stroke", "Simplify the final stroke");
|
||||
|
||||
prop = RNA_def_property(srna, "use_grease_pencil_reverse_layers", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "gp_settings", GP_PAINT_REVERSE_LAYERS);
|
||||
RNA_def_property_ui_text(prop, "Layers list Top-Down",
|
||||
"Order the grease pencil list of layers from Top to Down (require restart)");
|
||||
|
||||
prop = RNA_def_property(srna, "grease_pencil_eraser_radius", PROP_INT, PROP_PIXEL);
|
||||
RNA_def_property_int_sdna(prop, NULL, "gp_eraser");
|
||||
RNA_def_property_range(prop, 1, 500);
|
||||
|
Loading…
Reference in New Issue
Block a user