Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInes Almeida <britalmeida@gmail.com>2018-05-07 15:12:20 +0300
committerJoshua Leung <aligorith@gmail.com>2018-05-07 16:58:24 +0300
commit193af4ddc8dee29006fc34990bd18809bb2370db (patch)
tree15b31e21864f7040c9f405541abb1f2e8b971f85 /source/blender/editors/armature/pose_select.c
parentd9998f24abd2ebf737037c3f4922ad065022217e (diff)
Fix: Tag armature for copy on write when selecting bones, so active bone gets updated
see 8a2d2f1bb40 for similar Reviewers: aligorith, sergey Reviewed By: aligorith Maniphest Tasks: T54812 Differential Revision: https://developer.blender.org/D3204
Diffstat (limited to 'source/blender/editors/armature/pose_select.c')
-rw-r--r--source/blender/editors/armature/pose_select.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/editors/armature/pose_select.c b/source/blender/editors/armature/pose_select.c
index 9087a8879d6..9207a55b380 100644
--- a/source/blender/editors/armature/pose_select.c
+++ b/source/blender/editors/armature/pose_select.c
@@ -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;
}