diff options
Diffstat (limited to 'source/blender/makesrna/intern/rna_brush.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_brush.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_brush.c b/source/blender/makesrna/intern/rna_brush.c index 2b09ea51a84..7b221dfb32d 100644 --- a/source/blender/makesrna/intern/rna_brush.c +++ b/source/blender/makesrna/intern/rna_brush.c @@ -192,6 +192,13 @@ const EnumPropertyItem rna_enum_brush_gpencil_types_items[] = { ICON_BRUSH_TEXDRAW, "Tint", "The brush is of type used for tinting strokes"}, +#if 0 + {GPAINT_TOOL_CURVE, + "CURVE", + ICON_STROKE, + "Curve", + "The brush is of type used for drawing curves"}, +#endif {0, NULL, 0, NULL, NULL}, }; @@ -1904,6 +1911,11 @@ static void rna_def_gpencil_options(BlenderRNA *brna) RNA_def_property_boolean_sdna(prop, NULL, "flag", GP_BRUSH_OCCLUDE_ERASER); RNA_def_property_ui_text(prop, "Occlude Eraser", "Erase only strokes visible and not occluded"); RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); + + prop = RNA_def_property(srna, "use_curve_data", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_sdna(prop, NULL, "flag", GP_BRUSH_CURVE_DATA); + RNA_def_property_ui_text(prop, "Generate Curve", "Create Curve data for the new stroke"); + RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); } static void rna_def_brush(BlenderRNA *brna) |