diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-11-23 18:46:19 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-11-23 19:03:14 +0300 |
commit | e5abce922094cbacd316253be73eeed6ce5a6e92 (patch) | |
tree | f042c0cf52d922ad6688c9cd3c26c93e325f9906 /source/blender/editors/space_clip | |
parent | d13a53e71d60fb537064f7ce6f95a7b02446dda9 (diff) |
Tag relations for update when clip's animation changes
Diffstat (limited to 'source/blender/editors/space_clip')
-rw-r--r-- | source/blender/editors/space_clip/clip_utils.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/editors/space_clip/clip_utils.c b/source/blender/editors/space_clip/clip_utils.c index 19d321a53bf..7dd5816794f 100644 --- a/source/blender/editors/space_clip/clip_utils.c +++ b/source/blender/editors/space_clip/clip_utils.c @@ -43,6 +43,7 @@ #include "BKE_tracking.h" #include "DEG_depsgraph.h" +#include "DEG_depsgraph_build.h" #include "GPU_immediate.h" #include "GPU_matrix.h" @@ -202,7 +203,9 @@ void clip_delete_track(bContext *C, MovieClip *clip, MovieTrackingTrack *track) BKE_tracking_get_rna_path_for_track(tracking, track, rna_path, sizeof(rna_path)); - BKE_animdata_fix_paths_remove(&clip->id, rna_path); + if (BKE_animdata_fix_paths_remove(&clip->id, rna_path)) { + DEG_relations_tag_update(CTX_data_main(C)); + } /* Delete track itself. */ BKE_tracking_track_free(track); BLI_freelinkN(tracksbase, track); @@ -243,7 +246,9 @@ void clip_delete_plane_track(bContext *C, BKE_tracking_get_rna_path_for_plane_track(tracking, plane_track, rna_path, sizeof(rna_path)); - BKE_animdata_fix_paths_remove(&clip->id, rna_path); + if (BKE_animdata_fix_paths_remove(&clip->id, rna_path)) { + DEG_relations_tag_update(CTX_data_main(C)); + } /* Delete the plane track itself. */ BKE_tracking_plane_track_free(plane_track); BLI_freelinkN(plane_tracks_base, plane_track); |