diff options
author | Joshua Leung <aligorith@gmail.com> | 2018-05-11 18:43:56 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2018-05-11 18:44:10 +0300 |
commit | f998bad211aee61fe5131d7b8b56cd24969f29cc (patch) | |
tree | 2654e7627f95f91b1ae85a54f0d4a450afd12e9c /source | |
parent | d3c4248946f65d287f18b3d6488cd450dfb6d81d (diff) |
Fix: Last of the operators from T54811 now work with Copy on Write
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/armature/pose_edit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/armature/pose_edit.c b/source/blender/editors/armature/pose_edit.c index 5e62210e2e2..d24848b4b76 100644 --- a/source/blender/editors/armature/pose_edit.c +++ b/source/blender/editors/armature/pose_edit.c @@ -888,6 +888,7 @@ static int armature_layers_exec(bContext *C, wmOperator *op) /* note, notifier might evolve */ WM_event_add_notifier(C, NC_OBJECT | ND_POSE, ob); + DEG_id_tag_update(&arm->id, DEG_TAG_COPY_ON_WRITE); return OPERATOR_FINISHED; } @@ -962,6 +963,7 @@ static int pose_bone_layers_exec(bContext *C, wmOperator *op) /* note, notifier might evolve */ WM_event_add_notifier(C, NC_OBJECT | ND_POSE, ob); + DEG_id_tag_update((ID *)ob->data, DEG_TAG_COPY_ON_WRITE); return OPERATOR_FINISHED; } |