From f998bad211aee61fe5131d7b8b56cd24969f29cc Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Fri, 11 May 2018 17:43:56 +0200 Subject: Fix: Last of the operators from T54811 now work with Copy on Write --- source/blender/editors/armature/pose_edit.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/editors/armature/pose_edit.c') 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; } -- cgit v1.2.3