Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie Jolly <mistajolly@gmail.com>2019-02-26 19:04:27 +0300
committerCharlie Jolly <mistajolly@gmail.com>2019-02-26 19:04:27 +0300
commit65de468396aaf5f43fffdc6d42e304412f75fcb8 (patch)
tree0afd57b0052df8705fd4d9183c720205e7b33caa /source/blender/makesdna/DNA_brush_types.h
parentcb8614e398d395180a615e7e256a25cfe6f7c9eb (diff)
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.
Diffstat (limited to 'source/blender/makesdna/DNA_brush_types.h')
-rw-r--r--source/blender/makesdna/DNA_brush_types.h8
1 files changed, 5 insertions, 3 deletions
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 */