diff options
Diffstat (limited to 'source/blender/makesrna/intern/rna_brush.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_brush.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_brush.c b/source/blender/makesrna/intern/rna_brush.c index 83d40a3802b..60c28d8bae1 100644 --- a/source/blender/makesrna/intern/rna_brush.c +++ b/source/blender/makesrna/intern/rna_brush.c @@ -37,7 +37,6 @@ #include "IMB_imbuf.h" - #include "WM_types.h" static EnumPropertyItem prop_direction_items[]= { @@ -93,12 +92,11 @@ EnumPropertyItem brush_imagepaint_tool_items[] = { #include "BKE_texture.h" #include "BKE_brush.h" #include "BKE_icons.h" - #include "BKE_paint.h" #include "WM_api.h" -static void rna_Brush_reset_icon(Brush *br, char *type) +static void rna_Brush_reset_icon(Brush *br, const char *UNUSED(type)) { ID *id = &br->id; @@ -792,6 +790,11 @@ static void rna_def_operator_stroke_element(BlenderRNA *brna) prop= RNA_def_property(srna, "time", PROP_FLOAT, PROP_UNSIGNED); RNA_def_property_flag(prop, PROP_IDPROPERTY); RNA_def_property_ui_text(prop, "Time", ""); + + /* used for Grease Pencil sketching sessions */ + prop= RNA_def_property(srna, "is_start", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_flag(prop, PROP_IDPROPERTY); + RNA_def_property_ui_text(prop, "Is Stroke Start", ""); /* XXX: Tool (this will be for pressing a modifier key for a different brush, e.g. switching to a Smooth brush in the middle of the stroke */ |