Fix: Tag armature for copy on write when selecting bones, so active bone gets updated

see 8a2d2f1bb4 for similar

Reviewers: aligorith, sergey

Reviewed By: aligorith

Maniphest Tasks: T54812

Differential Revision: https://developer.blender.org/D3204
This commit is contained in:
Inês Almeida 2018-05-07 14:12:20 +02:00 committed by Joshua Leung
parent d9998f24ab
commit 193af4ddc8
1 changed files with 7 additions and 1 deletions

View File

@ -480,6 +480,9 @@ static int pose_select_parent_exec(bContext *C, wmOperator *UNUSED(op))
/* mask modifier ('armature' mode), etc. */
DEG_id_tag_update(&ob->id, OB_RECALC_DATA);
}
/* tag armature for copy-on-write update (since act_bone is in armature not object) */
DEG_id_tag_update(&arm->id, DEG_TAG_COPY_ON_WRITE);
return OPERATOR_FINISHED;
}
@ -643,7 +646,10 @@ static int pose_select_hierarchy_exec(bContext *C, wmOperator *op)
/* mask modifier ('armature' mode), etc. */
DEG_id_tag_update(&ob->id, OB_RECALC_DATA);
}
/* tag armature for copy-on-write update (since act_bone is in armature not object) */
DEG_id_tag_update(&arm->id, DEG_TAG_COPY_ON_WRITE);
return OPERATOR_FINISHED;
}