Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2021-09-16 12:45:06 +0300
committerBastien Montagne <bastien@blender.org>2021-09-16 15:30:56 +0300
commit236a9f081462d249043e2bd00a015a6c5cafe377 (patch)
tree8f4560cb31048877cca268a43691696dd043e37c /source/blender/editors/space_outliner
parent4f38624bf5df66ed1cf03a7167c9f959bab21ef9 (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/space_outliner')
-rw-r--r--source/blender/editors/space_outliner/outliner_tools.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tools.c b/source/blender/editors/space_outliner/outliner_tools.c
index 7709c6bb053..062d98c93af 100644
--- a/source/blender/editors/space_outliner/outliner_tools.c
+++ b/source/blender/editors/space_outliner/outliner_tools.c
@@ -739,7 +739,7 @@ static void id_local_fn(bContext *C,
Main *bmain = CTX_data_main(C);
/* if the ID type has no special local function,
* just clear the lib */
- if (BKE_lib_id_make_local(bmain, tselem->id, false, 0) == false) {
+ if (!BKE_lib_id_make_local(bmain, tselem->id, 0)) {
BKE_lib_id_clear_library_data(bmain, tselem->id);
}
else {