From 764e937d1a77b99d384a729700a08ef6fbe7bfac Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Mon, 3 Dec 2018 12:55:12 +0100 Subject: Fix T58258: Select Objects in Collection not working Maniphest Tasks: T58258 Differential Revision: https://developer.blender.org/D4023 --- source/blender/editors/object/object_collection.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3