Library reload code: add early out in case there is nothing to reload.
This commit is contained in:
parent
1dafe759ed
commit
843271d0a5
|
@ -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! */
|
||||
|
|
Loading…
Reference in New Issue