Fix T72449: Stale outliner selection after object duplicate

This commit is contained in:
Campbell Barton 2020-01-27 16:57:48 +11:00
parent 9a8dd37d1a
commit 9ee87231e1
Notes: blender-bot 2023-02-14 11:21:40 +01:00
Referenced by issue #72449, Outliner: keeps original object selected (in outliner only) after duplication
1 changed files with 2 additions and 0 deletions

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);