diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2018-12-03 14:55:12 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2018-12-03 16:19:52 +0300 |
commit | 764e937d1a77b99d384a729700a08ef6fbe7bfac (patch) | |
tree | 42bbde0a63028a9e6f7b78df3c6919c6f183fad7 /source/blender/editors/object | |
parent | 40f4343679b2df5c0ae4dc361542f3be5b0f66d7 (diff) |
Fix T58258: Select Objects in Collection not working
Maniphest Tasks: T58258
Differential Revision: https://developer.blender.org/D4023
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/object_collection.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_collection.c b/source/blender/editors/object/object_collection.c index 57f1ad7dea1..078b705a2fd 100644 --- a/source/blender/editors/object/object_collection.c +++ b/source/blender/editors/object/object_collection.c @@ -564,6 +564,7 @@ void OBJECT_OT_collection_unlink(wmOperatorType *ot) static int select_grouped_exec(bContext *C, wmOperator *UNUSED(op)) /* Select objects in the same collection as the active */ { + Scene *scene = CTX_data_scene(C); Collection *collection = CTX_data_pointer_get_type(C, "collection", &RNA_Collection).data; if (!collection) @@ -579,7 +580,8 @@ static int select_grouped_exec(bContext *C, wmOperator *UNUSED(op)) /* Select o } CTX_DATA_END; - WM_event_add_notifier(C, NC_OBJECT | ND_DRAW, NULL); + DEG_id_tag_update(&scene->id, DEG_TAG_SELECT_UPDATE); + WM_main_add_notifier(NC_SCENE | ND_OB_SELECT, scene); return OPERATOR_FINISHED; } |