Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2018-05-31 13:38:56 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2018-05-31 14:53:40 +0300
commit4e96bff938b123c96cbc88e546c259bbf5ad52d8 (patch)
treec8c0a4bb4fdc37d541a31fc2e7a31d0e18e04e49
parentf56a9fbad528c7aebce23f065842aa71450c75eb (diff)
Update CoW when adding/removing pose in pose library
-rw-r--r--source/blender/editors/armature/pose_lib.c6
1 files changed, 4 insertions, 2 deletions
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;
}