diff options
author | Bastien Montagne <bastien@blender.org> | 2021-09-16 12:45:06 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2021-09-16 15:30:56 +0300 |
commit | 236a9f081462d249043e2bd00a015a6c5cafe377 (patch) | |
tree | 8f4560cb31048877cca268a43691696dd043e37c /source/blender/blenkernel/intern/brush.c | |
parent | 4f38624bf5df66ed1cf03a7167c9f959bab21ef9 (diff) |
IDManagement: refactor: Remove 'test' part from `BKE_lib_id_make_local`.
Mixing testing and actual action in a single function is just not a good
way to do things, and the 'testing' feature is not used anywhere
anymore, time to get rid of it.
Diffstat (limited to 'source/blender/blenkernel/intern/brush.c')
-rw-r--r-- | source/blender/blenkernel/intern/brush.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c index 50264f348e9..22d4d00c1c5 100644 --- a/source/blender/blenkernel/intern/brush.c +++ b/source/blender/blenkernel/intern/brush.c @@ -161,7 +161,7 @@ static void brush_make_local(Main *bmain, ID *id, const int flags) if (brush->clone.image) { /* Special case: ima always local immediately. Clone image should only have one user anyway. */ - BKE_lib_id_make_local(bmain, &brush->clone.image->id, false, 0); + BKE_lib_id_make_local(bmain, &brush->clone.image->id, 0); } if (!force_local && !force_copy) { |