Commit: c788bd0211ce4b90f14e26ed66b37c830a1faaf9
Author: Joshua Leung
Date:   Thu May 24 14:38:22 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBc788bd0211ce4b90f14e26ed66b37c830a1faaf9

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

===================================================================

M       source/blender/editors/armature/pose_select.c

===================================================================

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;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to