Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/paint_curve_undo.c
| Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| if (C == NULL || !paint_curve_poll(C)) { | if (C == NULL || !paint_curve_poll(C)) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| Paint *p = BKE_paint_get_active_from_context(C); | Paint *p = BKE_paint_get_active_from_context(C); | ||||
| return (p->brush && p->brush->paint_curve); | return (p->brush && p->brush->paint_curve); | ||||
| } | } | ||||
| static void paintcurve_undosys_step_encode_init(struct bContext *C, UndoStep *us_p) | static void paintcurve_undosys_step_encode_init(const struct bContext *C, UndoStep *us_p) | ||||
| { | { | ||||
| /* XXX, use to set the undo type only. */ | /* XXX, use to set the undo type only. */ | ||||
| UNUSED_VARS(C, us_p); | UNUSED_VARS(C, us_p); | ||||
| } | } | ||||
| static bool paintcurve_undosys_step_encode(struct bContext *C, | static bool paintcurve_undosys_step_encode(struct bContext *C, | ||||
| struct Main *UNUSED(bmain), | struct Main *UNUSED(bmain), | ||||
| UndoStep *us_p) | UndoStep *us_p) | ||||
| ▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines | |||||