From 88dcfbaee9be4a08104efc2f4edd20dd8e7957fe Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Tue, 27 Jul 2010 16:09:02 +0000 Subject: == Sculpt == Added a brush reset operator so that a user won't need to reload the default blend to get back default brush settings * New brush.reset operator, resets a brush based on the currently-selected tool * Added UI button in the tools panel TODO: * Only resets sculpt brushes right now, other paint modes should be added * Sculpt polish tool exists only as a Brush, not as a tool; I'd suggest we make it a tool so it can be reset to defaults too --- source/blender/blenkernel/BKE_brush.h | 2 ++ 1 file changed, 2 insertions(+) (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 3ad902c41fe..3afcfddfea3 100644 --- a/source/blender/blenkernel/BKE_brush.h +++ b/source/blender/blenkernel/BKE_brush.h @@ -44,6 +44,8 @@ struct Brush *copy_brush(struct Brush *brush); void make_local_brush(struct Brush *brush); void free_brush(struct Brush *brush); +void brush_reset_sculpt(struct Brush *brush); + /* image icon function */ struct ImBuf *get_brush_icon(struct Brush *brush); -- cgit v1.2.3