diff options
author | Bastien Montagne <bastien@blender.org> | 2021-01-18 14:15:46 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2021-01-18 14:15:46 +0300 |
commit | 9f2271d354b96f19f887c1b0e6f0a569073f2636 (patch) | |
tree | e66b47ec31c988bc3b53bb7d47bf90f41e3864c4 /source/blender/editors/sculpt_paint/paint_curve_undo.c | |
parent | c85317e66940fd3c00fa840b1987e704015ebee2 (diff) |
Fix T84739: Crash with curve brush in sculpt mode.
No idea why we did not pass context to `ED_paintcurve_undo_push_end`, it
is easily availbale everywhere...
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_curve_undo.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_curve_undo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_curve_undo.c b/source/blender/editors/sculpt_paint/paint_curve_undo.c index 0ffb392f826..a8e22f66734 100644 --- a/source/blender/editors/sculpt_paint/paint_curve_undo.c +++ b/source/blender/editors/sculpt_paint/paint_curve_undo.c @@ -177,10 +177,10 @@ void ED_paintcurve_undo_push_begin(const char *name) BKE_undosys_step_push_init_with_type(ustack, C, name, BKE_UNDOSYS_TYPE_PAINTCURVE); } -void ED_paintcurve_undo_push_end(void) +void ED_paintcurve_undo_push_end(bContext *C) { UndoStack *ustack = ED_undo_stack_get(); - BKE_undosys_step_push(ustack, NULL, NULL); + BKE_undosys_step_push(ustack, C, NULL); BKE_undosys_stack_limit_steps_and_memory_defaults(ustack); WM_file_tag_modified(); } |