From 8b31f6fb2169e7163767e382adbef13587305aca Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 5 Nov 2018 15:31:25 +1100 Subject: Paint: add BKE_paint_ensure to initialize toolsettings Each mode had its own logic for initializing paint structs, move to a single function. Also remove "BKE_brush_get_gpencil_paint", entering grease pencil mode is responsible for ensuring the data is created. --- source/blender/blenkernel/BKE_brush.h | 1 - 1 file changed, 1 deletion(-) (limited to 'source/blender/blenkernel/BKE_brush.h') diff --git a/source/blender/blenkernel/BKE_brush.h b/source/blender/blenkernel/BKE_brush.h index ebfe47c2f99..aca734ae709 100644 --- a/source/blender/blenkernel/BKE_brush.h +++ b/source/blender/blenkernel/BKE_brush.h @@ -62,7 +62,6 @@ void BKE_brush_sculpt_reset(struct Brush *brush); void BKE_brush_gpencil_presets(struct bContext *C); void BKE_brush_update_material(struct Main *bmain, struct Material *ma, struct Brush *exclude_brush); struct Brush *BKE_brush_getactive_gpencil(struct ToolSettings *ts); -struct Paint *BKE_brush_get_gpencil_paint(struct ToolSettings *ts); /* image icon function */ struct ImBuf *get_brush_icon(struct Brush *brush); -- cgit v1.2.3