[Bf-blender-cvs] [e5abce92209] blender2.8: Tag relations for update when clip's animation changes
Sergey Sharybin
noreply at git.blender.org
Fri Nov 23 17:03:23 CET 2018
Commit: e5abce922094cbacd316253be73eeed6ce5a6e92
Author: Sergey Sharybin
Date: Fri Nov 23 16:46:19 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBe5abce922094cbacd316253be73eeed6ce5a6e92
Tag relations for update when clip's animation changes
===================================================================
M source/blender/editors/space_clip/clip_utils.c
===================================================================
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);
More information about the Bf-blender-cvs
mailing list