Library reload code: add early out in case there is nothing to reload.

This commit is contained in:
Bastien Montagne 2018-02-07 21:52:38 +01:00
parent 1dafe759ed
commit 843271d0a5
1 changed files with 5 additions and 0 deletions

View File

@ -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! */