Fix T58258: Select Objects in Collection not working
Maniphest Tasks: T58258 Differential Revision: https://developer.blender.org/D4023
This commit is contained in:
parent
40f4343679
commit
764e937d1a
Notes:
blender-bot
2023-06-26 11:58:59 +02:00
Referenced by issue #58258, 2.80 Beta: Select Objects in Collection not working
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue