Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenkernel/intern/brush.c')
-rw-r--r--source/blender/blenkernel/intern/brush.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c
index ca21345e37f..ebde6e0077f 100644
--- a/source/blender/blenkernel/intern/brush.c
+++ b/source/blender/blenkernel/intern/brush.c
@@ -62,7 +62,7 @@
/* Datablock add/copy/free/make_local */
-Brush *add_brush(char *name)
+Brush *add_brush(const char *name)
{
Brush *brush;
@@ -186,23 +186,6 @@ void make_local_brush(Brush *brush)
/* Library Operations */
-Brush **current_brush_source(Scene *sce)
-{
- Object *ob = sce->basact ? sce->basact->object : NULL;
-
- if(ob) {
- if(ob->mode & OB_MODE_SCULPT)
- return &sce->toolsettings->sculpt->brush;
- else if(ob->mode & OB_MODE_VERTEX_PAINT)
- return &sce->toolsettings->vpaint->brush;
- else if(ob->mode & OB_MODE_WEIGHT_PAINT)
- return &sce->toolsettings->wpaint->brush;
- else if(ob->mode & OB_MODE_TEXTURE_PAINT)
- return &sce->toolsettings->imapaint.brush;
- }
- return NULL;
-}
-
int brush_set_nr(Brush **current_brush, int nr)
{
ID *idtest, *id;