diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-02-07 23:52:38 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-02-07 23:52:38 +0300 |
commit | 843271d0a5adec1059f91f7fd8854936a1228807 (patch) | |
tree | 2a59a05b1912ba1e5a6606fa5d3a62f057492993 /source/blender/windowmanager | |
parent | 1dafe759edc3bc9a89f99a894d1c1fb3a14f44a9 (diff) |
Library reload code: add early out in case there is nothing to reload.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files_link.c | 5 |
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! */ |