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:
-rw-r--r--source/blender/windowmanager/intern/wm_files_link.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/windowmanager/intern/wm_files_link.c b/source/blender/windowmanager/intern/wm_files_link.c
index 25b9678ef11..b41ffb4cfc2 100644
--- a/source/blender/windowmanager/intern/wm_files_link.c
+++ b/source/blender/windowmanager/intern/wm_files_link.c
@@ -756,10 +756,10 @@ static int wm_lib_relocate_exec_do(bContext *C, wmOperator *op, bool do_reload)
}
}
- if (do_reload) {
- BKE_blendfile_link_append_context_flag_set(
- lapp_context, BLO_LIBLINK_USE_PLACEHOLDERS | BLO_LIBLINK_FORCE_INDIRECT, true);
- }
+ BKE_blendfile_link_append_context_flag_set(lapp_context,
+ BLO_LIBLINK_FORCE_INDIRECT |
+ (do_reload ? BLO_LIBLINK_USE_PLACEHOLDERS : 0),
+ true);
BKE_blendfile_library_relocate(lapp_context, op->reports, lib, do_reload);