diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-04-22 10:46:29 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-04-22 10:46:29 +0300 |
commit | 414990b0f181bdfb15a602fd07cb0169b7e19543 (patch) | |
tree | ceb1f5937b1eafbdfd6225b5b9102439ba5e2cad /source/blender/editors/space_clip/tracking_ops.c | |
parent | 18a47b67fd248080e8cf1b306324f0e7157b382d (diff) |
Tracking: Some more code de-duplication
Diffstat (limited to 'source/blender/editors/space_clip/tracking_ops.c')
-rw-r--r-- | source/blender/editors/space_clip/tracking_ops.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/source/blender/editors/space_clip/tracking_ops.c b/source/blender/editors/space_clip/tracking_ops.c index 5c88ad8b3f7..4521e980687 100644 --- a/source/blender/editors/space_clip/tracking_ops.c +++ b/source/blender/editors/space_clip/tracking_ops.c @@ -825,12 +825,8 @@ static void apply_mouse_slide(bContext *C, SlideMarkerData *data) plane_track = plane_track->next) { if ((plane_track->flag & PLANE_TRACK_AUTOKEY) == 0) { - int i; - for (i = 0; i < plane_track->point_tracksnr; i++) { - if (plane_track->point_tracks[i] == data->track) { - BKE_tracking_track_plane_from_existing_motion(plane_track, framenr); - break; - } + if (BKE_tracking_plane_track_has_point_track(plane_track, data->track)) { + BKE_tracking_track_plane_from_existing_motion(plane_track, framenr); } } } |