diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2019-03-08 17:53:38 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2019-03-11 16:36:22 +0300 |
commit | 4302342287b56e6b47930eec7db55625c3589327 (patch) | |
tree | 3be6e6b6096f39018c33f1e58bad76237018abd8 /source/blender/editors/sculpt_paint/paint_stroke.c | |
parent | f60896454929080ae775a7143c30722788ab83df (diff) |
Fix T62359: Flip colors for Fill Tool missing
Reviewers: brecht
Maniphest Tasks: T62359
Differential Revision: https://developer.blender.org/D4486
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_stroke.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_stroke.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_stroke.c b/source/blender/editors/sculpt_paint/paint_stroke.c index 2af6a4db3ee..a782ca9a5ec 100644 --- a/source/blender/editors/sculpt_paint/paint_stroke.c +++ b/source/blender/editors/sculpt_paint/paint_stroke.c @@ -1365,6 +1365,11 @@ bool paint_stroke_flipped(struct PaintStroke *stroke) return stroke->pen_flip; } +bool paint_stroke_inverted(struct PaintStroke *stroke) +{ + return stroke->stroke_mode == BRUSH_STROKE_INVERT; +} + float paint_stroke_distance_get(struct PaintStroke *stroke) { return stroke->stroke_distance; |