Fix invalid state after calling append/link operator without any items

This commit is contained in:
2019-07-03 20:40:33 +02:00
parent 771ea2d73f
commit 466cc3fbe4

View File

@@ -464,6 +464,8 @@ static int wm_link_append_exec(bContext *C, wmOperator *op)
if (lapp_data->num_items == 0) {
/* Early out in case there is nothing to link. */
wm_link_append_data_free(lapp_data);
/* Clear pre existing tag. */
BKE_main_id_tag_all(bmain, LIB_TAG_PRE_EXISTING, false);
return OPERATOR_CANCELLED;
}