diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-03-28 19:16:55 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-03-28 19:16:55 +0300 |
commit | 8a183aa26bc34fe441ba1ad3e5f2c307ed54f6b7 (patch) | |
tree | d8a9d768d1ce81f9afec943a700bc8575454533a /source/blender/blenkernel/intern/brush.c | |
parent | 8c1c2b40a2131dc89e57ece3bc3b06c5a46f91d2 (diff) |
Cleanup: use BKE_texture_ prefix
Diffstat (limited to 'source/blender/blenkernel/intern/brush.c')
-rw-r--r-- | source/blender/blenkernel/intern/brush.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c index 10d77921515..661bf6e7d76 100644 --- a/source/blender/blenkernel/intern/brush.c +++ b/source/blender/blenkernel/intern/brush.c @@ -103,8 +103,8 @@ static void brush_defaults(Brush *brush) brush->jitter = 0.0f; /* BRUSH TEXTURE SETTINGS */ - default_mtex(&brush->mtex); - default_mtex(&brush->mask_mtex); + BKE_texture_mtex_default(&brush->mtex); + BKE_texture_mtex_default(&brush->mask_mtex); brush->texture_sample_bias = 0; /* value to added to texture samples */ brush->texture_overlay_alpha = 33; @@ -469,7 +469,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 *)BKE_texture_copy((Tex *)id); - else idtest = (ID *)add_texture(G.main, "Tex"); + else idtest = (ID *)BKE_texture_add(G.main, "Tex"); idtest->us--; } if (idtest != id) { |