Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/paint_stroke.c
| Show First 20 Lines • Show All 1,359 Lines • ▼ Show 20 Lines | void *paint_stroke_mode_data(struct PaintStroke *stroke) | ||||
| return stroke->mode_data; | return stroke->mode_data; | ||||
| } | } | ||||
| bool paint_stroke_flipped(struct PaintStroke *stroke) | bool paint_stroke_flipped(struct PaintStroke *stroke) | ||||
| { | { | ||||
| return stroke->pen_flip; | 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) | float paint_stroke_distance_get(struct PaintStroke *stroke) | ||||
| { | { | ||||
| return stroke->stroke_distance; | return stroke->stroke_distance; | ||||
| } | } | ||||
| void paint_stroke_set_mode_data(PaintStroke *stroke, void *mode_data) | void paint_stroke_set_mode_data(PaintStroke *stroke, void *mode_data) | ||||
| { | { | ||||
| stroke->mode_data = mode_data; | stroke->mode_data = mode_data; | ||||
| Show All 21 Lines | |||||