Outliner draw: Fix using wrong flag to tag object on visibility change

Note: This doesn't fix any bug we know of, but it is the correct flag to
tag in this case.
This commit is contained in:
Dalai Felinto
2019-04-23 12:54:19 -03:00
parent 80b036afab
commit 1ab1d987fa

View File

@@ -333,7 +333,7 @@ static void hidebutton_base_flag_cb(bContext *C, void *poin, void *poin2)
if (depsgraph_changed) {
BKE_main_collection_sync_remap(bmain);
DEG_id_tag_update(&ob->id, LIB_TAG_COPIED_ON_WRITE);
DEG_id_tag_update(&ob->id, ID_RECALC_COPY_ON_WRITE);
DEG_relations_tag_update(bmain);
WM_main_add_notifier(NC_OBJECT | ND_DRAW, &ob->id);
}