Fix T63617: Bone groups (de)select operators not immediately refreshing

was missing DEG updates

Reviewers: brecht

Maniphest Tasks: T63617

Differential Revision: https://developer.blender.org/D4691
This commit is contained in:
Philipp Oeser 2019-04-16 12:15:01 +02:00
parent e017d89eae
commit 11175eb8a8
Notes: blender-bot 2023-02-14 03:59:42 +01:00
Referenced by issue #63617, "Bone groups" not reflect current selection untill change active group
1 changed files with 4 additions and 0 deletions

View File

@ -463,6 +463,8 @@ static int pose_group_select_exec(bContext *C, wmOperator *UNUSED(op))
pose_group_select(ob, 1);
/* notifiers for updates */
bArmature *arm = ob->data;
DEG_id_tag_update(&arm->id, ID_RECALC_SELECT);
WM_event_add_notifier(C, NC_OBJECT | ND_POSE, ob);
return OPERATOR_FINISHED;
@ -494,6 +496,8 @@ static int pose_group_deselect_exec(bContext *C, wmOperator *UNUSED(op))
pose_group_select(ob, 0);
/* notifiers for updates */
bArmature *arm = ob->data;
DEG_id_tag_update(&arm->id, ID_RECALC_SELECT);
WM_event_add_notifier(C, NC_OBJECT | ND_POSE, ob);
return OPERATOR_FINISHED;