From 65de468396aaf5f43fffdc6d42e304412f75fcb8 Mon Sep 17 00:00:00 2001 From: Charlie Jolly Date: Tue, 26 Feb 2019 16:04:27 +0000 Subject: GP: Draw: Stroke Trim New edit mode operator and post-processing brush option. Trim works on a single GP stroke. It removes trailing points before and after the first intersection (or loop) nearest to the start of the stroke. --- source/blender/makesdna/DNA_brush_types.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'source/blender/makesdna/DNA_brush_types.h') diff --git a/source/blender/makesdna/DNA_brush_types.h b/source/blender/makesdna/DNA_brush_types.h index 7954dbf8501..584a43aad35 100644 --- a/source/blender/makesdna/DNA_brush_types.h +++ b/source/blender/makesdna/DNA_brush_types.h @@ -71,8 +71,7 @@ typedef struct BrushGpencilSettings { short draw_smoothlvl; /** Number of times to subdivide new strokes. */ short draw_subdivide; - /** Internal grease pencil drawing flags. */ - short flag; + short _pad; /** Number of times to apply thickness smooth factor to new strokes. */ short thick_smoothlvl; @@ -106,7 +105,8 @@ typedef struct BrushGpencilSettings { float era_strength_f; /** Factor to apply to thickness for soft eraser. */ float era_thickness_f; - char pad_2[4]; + /** Internal grease pencil drawing flags. */ + int flag; struct CurveMapping *curve_sensitivity; struct CurveMapping *curve_strength; @@ -147,6 +147,8 @@ typedef enum eGPDbrush_Flag { GP_BRUSH_DISSABLE_LASSO = (1 << 14), /* Do not erase strokes oLcluded */ GP_BRUSH_OCCLUDE_ERASER = (1 << 15), + /* Post process trim stroke */ + GP_BRUSH_TRIM_STROKE = (1 << 16), } eGPDbrush_Flag; /* BrushGpencilSettings->gp_fill_draw_mode */ -- cgit v1.2.3