Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/gpencil_data.c
| Show First 20 Lines • Show All 1,574 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| /* ************************************************ */ | /* ************************************************ */ | ||||
| /* Drawing Brushes Operators */ | /* Drawing Brushes Operators */ | ||||
| /* ******************* Brush create presets ************************** */ | /* ******************* Brush create presets ************************** */ | ||||
| static int gp_brush_presets_create_exec(bContext *C, wmOperator *UNUSED(op)) | 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 */ | /* notifiers */ | ||||
| WM_event_add_notifier(C, NC_GPENCIL | ND_DATA | NA_EDITED, NULL); | WM_event_add_notifier(C, NC_GPENCIL | ND_DATA | NA_EDITED, NULL); | ||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| void GPENCIL_OT_brush_presets_create(wmOperatorType *ot) | void GPENCIL_OT_brush_presets_create(wmOperatorType *ot) | ||||
| ▲ Show 20 Lines • Show All 1,413 Lines • Show Last 20 Lines | |||||