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
path: root/source
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2018-02-07 23:52:38 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-02-07 23:52:38 +0300
commit843271d0a5adec1059f91f7fd8854936a1228807 (patch)
tree2a59a05b1912ba1e5a6606fa5d3a62f057492993 /source
parent1dafe759edc3bc9a89f99a894d1c1fb3a14f44a9 (diff)
Library reload code: add early out in case there is nothing to reload.
Diffstat (limited to 'source')
-rw-r--r--source/blender/windowmanager/intern/wm_files_link.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_files_link.c b/source/blender/windowmanager/intern/wm_files_link.c
index 05c569cbaac..dca1077ebc7 100644
--- a/source/blender/windowmanager/intern/wm_files_link.c
+++ b/source/blender/windowmanager/intern/wm_files_link.c
@@ -590,6 +590,11 @@ static void lib_relocate_do(
}
}
+ if (lapp_data->num_items == 0) {
+ /* Early out in case there is nothing to do. */
+ return;
+ }
+
BKE_main_id_tag_all(bmain, LIB_TAG_PRE_EXISTING, true);
/* We do not want any instanciation here! */