Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/paint_stroke.c
| Show First 20 Lines • Show All 1,674 Lines • ▼ Show 20 Lines | void paint_stroke_set_mode_data(PaintStroke *stroke, void *mode_data) | ||||
| stroke->mode_data = mode_data; | stroke->mode_data = mode_data; | ||||
| } | } | ||||
| bool paint_stroke_started(PaintStroke *stroke) | bool paint_stroke_started(PaintStroke *stroke) | ||||
| { | { | ||||
| return stroke->stroke_started; | return stroke->stroke_started; | ||||
| } | } | ||||
| UnifiedPaintSettings *paint_stroke_paintsettings_get(PaintStroke *stroke) | |||||
| { | |||||
| return stroke->ups; | |||||
| } | |||||
| Brush *paint_stroke_brush_get(PaintStroke *stroke) | |||||
| { | |||||
| return stroke->brush; | |||||
| } | |||||
| bool PAINT_brush_tool_poll(bContext *C) | bool PAINT_brush_tool_poll(bContext *C) | ||||
| { | { | ||||
| Paint *p = BKE_paint_get_active_from_context(C); | Paint *p = BKE_paint_get_active_from_context(C); | ||||
| Object *ob = CTX_data_active_object(C); | Object *ob = CTX_data_active_object(C); | ||||
| ScrArea *area = CTX_wm_area(C); | ScrArea *area = CTX_wm_area(C); | ||||
| ARegion *region = CTX_wm_region(C); | ARegion *region = CTX_wm_region(C); | ||||
| if (p && ob && BKE_paint_brush(p) && | if (p && ob && BKE_paint_brush(p) && | ||||
| Show All 10 Lines | |||||