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:
authorJoshua Leung <aligorith@gmail.com>2018-05-24 15:38:22 +0300
committerJoshua Leung <aligorith@gmail.com>2018-05-24 16:05:17 +0300
commitc788bd0211ce4b90f14e26ed66b37c830a1faaf9 (patch)
tree36eaedbba3d5aab40fd3006b6cab0a5e03e73143 /source/blender/editors/armature/pose_select.c
parentfe820eba925d09db5f72eaf41842943344cc8d2f (diff)
Fix: Several pose select operators were not in fact working with COW
The following operators are fixed in this commit * POSE_OT_select_linked * POSE_OT_select_grouped * POSE_OT_select_mirror
Diffstat (limited to 'source/blender/editors/armature/pose_select.c')
-rw-r--r--source/blender/editors/armature/pose_select.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/editors/armature/pose_select.c b/source/blender/editors/armature/pose_select.c
index b03aa66df04..8e839d23c40 100644
--- a/source/blender/editors/armature/pose_select.c
+++ b/source/blender/editors/armature/pose_select.c
@@ -368,6 +368,9 @@ static int pose_select_connected_invoke(bContext *C, wmOperator *op, const wmEve
/* mask modifier ('armature' mode), etc. */
DEG_id_tag_update(&base->object->id, OB_RECALC_DATA);
}
+
+ /* need to tag armature for cow updates, or else selection doesn't update */
+ DEG_id_tag_update(&arm->id, DEG_TAG_COPY_ON_WRITE);
return OPERATOR_FINISHED;
}
@@ -907,6 +910,9 @@ static int pose_select_grouped_exec(bContext *C, wmOperator *op)
DEG_id_tag_update(&ob->id, OB_RECALC_DATA);
}
+ /* need to tag armature for cow updates, or else selection doesn't update */
+ DEG_id_tag_update(&arm->id, DEG_TAG_COPY_ON_WRITE);
+
/* report done status */
if (changed)
return OPERATOR_FINISHED;
@@ -1001,6 +1007,9 @@ static int pose_select_mirror_exec(bContext *C, wmOperator *op)
}
WM_event_add_notifier(C, NC_OBJECT | ND_BONE_SELECT, ob);
+
+ /* need to tag armature for cow updates, or else selection doesn't update */
+ DEG_id_tag_update(&arm->id, DEG_TAG_COPY_ON_WRITE);
}
FOREACH_OBJECT_IN_MODE_END;