[Bf-blender-cvs] [f998bad211a] blender2.8: Fix: Last of the operators from T54811 now work with Copy on Write

Joshua Leung noreply at git.blender.org
Fri May 11 17:44:19 CEST 2018


Commit: f998bad211aee61fe5131d7b8b56cd24969f29cc
Author: Joshua Leung
Date:   Fri May 11 17:43:56 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBf998bad211aee61fe5131d7b8b56cd24969f29cc

Fix: Last of the operators from T54811 now work with Copy on Write

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

M	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;
 }



More information about the Bf-blender-cvs mailing list