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/editors/interface/interface_templates.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/editors/interface/interface_templates.c')
-rw-r--r-- | source/blender/editors/interface/interface_templates.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c index b9e4f2ef44a..9787b101572 100644 --- a/source/blender/editors/interface/interface_templates.c +++ b/source/blender/editors/interface/interface_templates.c @@ -673,7 +673,7 @@ static void template_id_cb(bContext *C, void *arg_litem, void *arg_event) } } else { - if (BKE_lib_id_make_local(bmain, id, false, 0)) { + if (BKE_lib_id_make_local(bmain, id, 0)) { BKE_main_id_newptr_and_tag_clear(bmain); /* Reassign to get proper updates/notifiers. */ |