diff options
author | Bastien Montagne <b.mont29@gmail.com> | 2020-03-04 12:38:30 +0300 |
---|---|---|
committer | Bastien Montagne <b.mont29@gmail.com> | 2020-03-04 13:43:30 +0300 |
commit | 76d8e8693fab13d300130dc3a9bd75f6f637991d (patch) | |
tree | e60aa5b48717e94e335dcb93490363e3da42987b /source/blender/blenkernel/intern/brush.c | |
parent | e4eede83187d6e4f784491532a0887d4f8c9ba31 (diff) |
Cleanup: Rename 'make local' functions to new scheme.
Also removed some only used locally from the header, `BKE_lib_id.h`
is already way too big, no need to overload it with unused things.
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 7eef2bac3e8..aba7df0a936 100644 --- a/source/blender/blenkernel/intern/brush.c +++ b/source/blender/blenkernel/intern/brush.c @@ -781,15 +781,15 @@ void BKE_brush_make_local(Main *bmain, Brush *brush, const bool lib_local) if (brush->clone.image) { /* Special case: ima always local immediately. Clone image should only have one user anyway. */ - id_make_local(bmain, &brush->clone.image->id, false, false); + BKE_lib_id_make_local(bmain, &brush->clone.image->id, false, false); } BKE_library_ID_test_usages(bmain, brush, &is_local, &is_lib); if (lib_local || is_local) { if (!is_lib) { - id_clear_lib_data(bmain, &brush->id); - BKE_id_expand_local(bmain, &brush->id); + BKE_lib_id_clear_library_data(bmain, &brush->id); + BKE_lib_id_expand_local(bmain, &brush->id); /* enable fake user by default */ id_fake_user_set(&brush->id); |