Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-01-27 08:57:48 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-01-27 08:57:48 +0300
commit9ee87231e116d261cd1237c796e8de0433c88f2c (patch)
tree7d471ec1fa60f6e95fe2530686c5ede237f31dda /source/blender/editors/object
parent9a8dd37d1aa9d3d67a59ab509fe83402ba8fc964 (diff)
Fix T72449: Stale outliner selection after object duplicate
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r--source/blender/editors/object/object_add.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c
index 452b349cfbf..6c65da3ee48 100644
--- a/source/blender/editors/object/object_add.c
+++ b/source/blender/editors/object/object_add.c
@@ -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);