diff options
author | Antonioya <blendergit@gmail.com> | 2018-09-30 17:21:28 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-09-30 17:21:28 +0300 |
commit | ec06532cefa6e3813992fe226dddfe2235edd33c (patch) | |
tree | c0c2c0372eecfcfc642b496cdec04f0f00a0de8f /source/blender/makesrna/intern/rna_brush.c | |
parent | 60935cb9d8bd94098eabbf84140fe07ce810fc03 (diff) |
GP: New option to disable lasso while drawing
Now it's possible to disable the lasso effect of the fill color while drawing with a fill color.
This sometimes is required to see the lines and it's the first step to implement a new lasso brush.
Diffstat (limited to 'source/blender/makesrna/intern/rna_brush.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_brush.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_brush.c b/source/blender/makesrna/intern/rna_brush.c index 7eacf6845ea..5d66742e8a3 100644 --- a/source/blender/makesrna/intern/rna_brush.c +++ b/source/blender/makesrna/intern/rna_brush.c @@ -1286,6 +1286,11 @@ static void rna_def_gpencil_options(BlenderRNA *brna) RNA_def_property_ui_icon(prop, ICON_UNPINNED, 1); RNA_def_property_ui_text(prop, "Pin Material", "Keep material assigned to brush"); RNA_def_parameter_clear_flags(prop, PROP_ANIMATABLE, 0); + + prop = RNA_def_property(srna, "disable_lasso", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_sdna(prop, NULL, "flag", GP_BRUSH_DISSABLE_LASSO); + RNA_def_property_ui_text(prop, "Disable Lasso", "Do not draw fill color while drawing the stroke"); + RNA_def_parameter_clear_flags(prop, PROP_ANIMATABLE, 0); } static void rna_def_brush(BlenderRNA *brna) |