[Bf-blender-cvs] [764e937d1a7] blender2.8: Fix T58258: Select Objects in Collection not working
Philipp Oeser
noreply at git.blender.org
Mon Dec 3 14:21:37 CET 2018
Commit: 764e937d1a77b99d384a729700a08ef6fbe7bfac
Author: Philipp Oeser
Date: Mon Dec 3 12:55:12 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB764e937d1a77b99d384a729700a08ef6fbe7bfac
Fix T58258: Select Objects in Collection not working
Maniphest Tasks: T58258
Differential Revision: https://developer.blender.org/D4023
===================================================================
M source/blender/editors/object/object_collection.c
===================================================================
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;
}
More information about the Bf-blender-cvs
mailing list