Fix T72449: Stale outliner selection after object duplicate

This commit is contained in:
2020-01-27 16:57:48 +11:00
parent 9a8dd37d1a
commit 9ee87231e1

View File

@@ -2693,6 +2693,8 @@ static int duplicate_exec(bContext *C, wmOperator *op)
copy_object_set_idnew(C);
ED_outliner_select_sync_from_object_tag(C);
DEG_relations_tag_update(bmain);
DEG_id_tag_update(&scene->id, ID_RECALC_COPY_ON_WRITE | ID_RECALC_SELECT);