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:
authorCampbell Barton <ideasman42@gmail.com>2012-05-05 18:03:12 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-05-05 18:03:12 +0400
commita731e130432a98ab8228112027cd3eaa8ed700b1 (patch)
treee71dad8f907ccd4a73b7bbc1ad166eda2dfba9cf /source/blender/blenkernel/intern/brush.c
parenta30dec8e5968ae6568184cfdc2e1a69bad0e39d6 (diff)
code cleanup: function naming, use BKE_*type* prefix.
Diffstat (limited to 'source/blender/blenkernel/intern/brush.c')
-rw-r--r--source/blender/blenkernel/intern/brush.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c
index 51258b13f68..a1e8a11e9ff 100644
--- a/source/blender/blenkernel/intern/brush.c
+++ b/source/blender/blenkernel/intern/brush.c
@@ -126,7 +126,7 @@ Brush *BKE_brush_add(const char *name)
{
Brush *brush;
- brush= alloc_libblock(&G.main->brush, ID_BR, name);
+ brush= BKE_libblock_alloc(&G.main->brush, ID_BR, name);
/* enable fake user by default */
brush->id.flag |= LIB_FAKEUSER;
@@ -145,7 +145,7 @@ Brush *BKE_brush_copy(Brush *brush)
{
Brush *brushn;
- brushn= copy_libblock(&brush->id);
+ brushn= BKE_libblock_copy(&brush->id);
if (brush->mtex.tex)
id_us_plus((ID*)brush->mtex.tex);
@@ -432,7 +432,7 @@ int BKE_brush_texture_set_nr(Brush *brush, int nr)
idtest= (ID*)BLI_findlink(&G.main->tex, nr-1);
if (idtest==NULL) { /* new tex */
- if (id) idtest= (ID *)copy_texture((Tex *)id);
+ if (id) idtest= (ID *)BKE_texture_copy((Tex *)id);
else idtest= (ID *)add_texture("Tex");
idtest->us--;
}