[Bf-blender-cvs] [4e96bff938b] blender2.8: Update CoW when adding/removing pose in pose library

Sybren A. Stüvel noreply at git.blender.org
Thu May 31 14:06:46 CEST 2018


Commit: 4e96bff938b123c96cbc88e546c259bbf5ad52d8
Author: Sybren A. Stüvel
Date:   Thu May 31 12:38:56 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB4e96bff938b123c96cbc88e546c259bbf5ad52d8

Update CoW when adding/removing pose in pose library

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

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

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

diff --git a/source/blender/editors/armature/pose_lib.c b/source/blender/editors/armature/pose_lib.c
index 609281a7bf2..65a55354982 100644
--- a/source/blender/editors/armature/pose_lib.c
+++ b/source/blender/editors/armature/pose_lib.c
@@ -501,7 +501,8 @@ static int poselib_add_exec(bContext *C, wmOperator *op)
 	
 	/* store new 'active' pose number */
 	act->active_marker = BLI_listbase_count(&act->markers);
-	
+	DEG_id_tag_update(&act->id, DEG_TAG_COPY_ON_WRITE);
+
 	/* done */
 	return OPERATOR_FINISHED;
 }
@@ -615,7 +616,8 @@ static int poselib_remove_exec(bContext *C, wmOperator *op)
 	 * may be being shown in anim editors as active action 
 	 */
 	WM_event_add_notifier(C, NC_ANIMATION | ND_KEYFRAME | NA_EDITED, NULL);
-	
+	DEG_id_tag_update(&act->id, DEG_TAG_COPY_ON_WRITE);
+
 	/* done */
 	return OPERATOR_FINISHED;
 }



More information about the Bf-blender-cvs mailing list