Update CoW when adding/removing pose in pose library

This commit is contained in:
Sybren A. Stüvel 2018-05-31 12:38:56 +02:00
parent f56a9fbad5
commit 4e96bff938
1 changed files with 4 additions and 2 deletions

View File

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