Cleanup: no need to clear new flags and pointers from whole Main when making a single ID local.

This commit is contained in:
2021-09-16 12:40:41 +02:00
parent 27b6636c45
commit e04a10adab

View File

@@ -674,7 +674,7 @@ static void template_id_cb(bContext *C, void *arg_litem, void *arg_event)
}
else {
if (BKE_lib_id_make_local(bmain, id, 0)) {
BKE_main_id_newptr_and_tag_clear(bmain);
BKE_id_newptr_and_tag_clear(id);
/* Reassign to get proper updates/notifiers. */
idptr = RNA_property_pointer_get(&template_ui->ptr, template_ui->prop);