diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-03-08 17:40:22 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-03-08 17:41:03 +0300 |
commit | 50a8a95ce3f88303f29fa8839ef37b372df5ce49 (patch) | |
tree | 65b6219223b17f37d4d24c83f952ac4670710f5c /source/blender/makesrna | |
parent | 4831dd5f387927da603ad5a137cd7c014677a3f5 (diff) |
Fix T60086: missing update when removing fcurves from Python API.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_action.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_action.c b/source/blender/makesrna/intern/rna_action.c index fd45a9a9048..293ff1db505 100644 --- a/source/blender/makesrna/intern/rna_action.c +++ b/source/blender/makesrna/intern/rna_action.c @@ -47,8 +47,11 @@ #include "BKE_fcurve.h" +#include "DEG_depsgraph.h" + #include "ED_keyframing.h" +#include "WM_api.h" static void rna_ActionGroup_channels_next(CollectionPropertyIterator *iter) { @@ -94,6 +97,9 @@ static void rna_Action_groups_remove(bAction *act, ReportList *reports, PointerR MEM_freeN(agrp); RNA_POINTER_INVALIDATE(agrp_ptr); + + DEG_id_tag_update(&act->id, ID_RECALC_COPY_ON_WRITE); + WM_main_add_notifier(NC_ANIMATION | ND_KEYFRAME | NA_EDITED, NULL); } static FCurve *rna_Action_fcurve_new(bAction *act, Main *bmain, ReportList *reports, const char *data_path, @@ -150,6 +156,9 @@ static void rna_Action_fcurve_remove(bAction *act, ReportList *reports, PointerR free_fcurve(fcu); RNA_POINTER_INVALIDATE(fcu_ptr); } + + DEG_id_tag_update(&act->id, ID_RECALC_COPY_ON_WRITE); + WM_main_add_notifier(NC_ANIMATION | ND_KEYFRAME | NA_EDITED, NULL); } static TimeMarker *rna_Action_pose_markers_new(bAction *act, const char name[]) |