diff options
author | Antonioya <blendergit@gmail.com> | 2018-10-09 20:07:02 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-10-09 20:07:20 +0300 |
commit | 2c0f02dd0a886ee0e6869a35ab901c0fa8d822eb (patch) | |
tree | a4363f3c045b9d4c2c7081370c5f9c2975065bbe /source/blender/makesrna/intern/rna_brush.c | |
parent | c630ce3f6d1502f106ce7a7b51707970c95b2c0a (diff) |
GP: Add Shift+F to change Drawing Brush strength
Diffstat (limited to 'source/blender/makesrna/intern/rna_brush.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_brush.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_brush.c b/source/blender/makesrna/intern/rna_brush.c index ef8db267412..665a694653c 100644 --- a/source/blender/makesrna/intern/rna_brush.c +++ b/source/blender/makesrna/intern/rna_brush.c @@ -994,9 +994,10 @@ static void rna_def_gpencil_options(BlenderRNA *brna) RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, NULL); /* Strength factor for new strokes */ - prop = RNA_def_property(srna, "pen_strength", PROP_FLOAT, PROP_NONE); + prop = RNA_def_property(srna, "pen_strength", PROP_FLOAT, PROP_FACTOR); RNA_def_property_float_sdna(prop, NULL, "draw_strength"); RNA_def_property_range(prop, 0.0f, 1.0f); + RNA_def_property_ui_range(prop, 0.0f, 1.0f, 0.001, 3); RNA_def_property_ui_text(prop, "Strength", "Color strength for new strokes (affect alpha factor of color)"); RNA_def_parameter_clear_flags(prop, PROP_ANIMATABLE, 0); RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, NULL); |