From 3c7707b49fc634f4850c1b3f0e3a439a91bde891 Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Fri, 27 Sep 2019 16:52:08 +0200 Subject: GPencil: New Brush default settings This patch replaces D5787. Now instead to replace the startup.blend file, all the changes are done in versioning and moved to shared module to be reused by Brush reset. Reviewers: brecht, mendio Reviewed By: brecht Subscribers: pepeland, mendio Differential Revision: https://developer.blender.org/D5913 --- source/blender/editors/gpencil/gpencil_data.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/gpencil/gpencil_data.c') diff --git a/source/blender/editors/gpencil/gpencil_data.c b/source/blender/editors/gpencil/gpencil_data.c index fdbbd899366..67ffc6adc9f 100644 --- a/source/blender/editors/gpencil/gpencil_data.c +++ b/source/blender/editors/gpencil/gpencil_data.c @@ -1580,7 +1580,9 @@ void GPENCIL_OT_stroke_lock_color(wmOperatorType *ot) /* ******************* Brush create presets ************************** */ static int gp_brush_presets_create_exec(bContext *C, wmOperator *UNUSED(op)) { - BKE_brush_gpencil_presets(C); + Main *bmain = CTX_data_main(C); + ToolSettings *ts = CTX_data_tool_settings(C); + BKE_brush_gpencil_presets(bmain, ts); /* notifiers */ WM_event_add_notifier(C, NC_GPENCIL | ND_DATA | NA_EDITED, NULL); -- cgit v1.2.3