From 76d8e8693fab13d300130dc3a9bd75f6f637991d Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Wed, 4 Mar 2020 10:38:30 +0100 Subject: 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. --- source/blender/blenkernel/intern/brush.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/blenkernel/intern/brush.c') 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); -- cgit v1.2.3