diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-01-28 20:14:50 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-01-28 20:14:50 +0400 |
commit | aa51f499b3baf86f745c27867e27af44cb3330a8 (patch) | |
tree | eea6606013864b39001b00d8d4a2b030683b5a14 /source/blender/editors/space_clip/clip_graph_draw.c | |
parent | 22e915e196e9df59bc01d59483e387696549fd22 (diff) |
Fix unused variable in the right way
It IS to be used :)
Diffstat (limited to 'source/blender/editors/space_clip/clip_graph_draw.c')
-rw-r--r-- | source/blender/editors/space_clip/clip_graph_draw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_clip/clip_graph_draw.c b/source/blender/editors/space_clip/clip_graph_draw.c index aa38ef7f575..34d44344ccf 100644 --- a/source/blender/editors/space_clip/clip_graph_draw.c +++ b/source/blender/editors/space_clip/clip_graph_draw.c @@ -211,6 +211,7 @@ static void tracking_error_segment_point_cb(void *userdata, TrackErrorCurveUserData *data = (TrackErrorCurveUserData *) userdata; float reprojected_position[4], bundle_position[4], marker_position[2], delta[2]; float reprojection_error; + float weight = BKE_tracking_track_get_weight_for_marker(data->clip, track, marker); if (!data->matrix_initialized || data->matrix_frame != scene_framenr) { BKE_tracking_get_projection_matrix(data->tracking, data->tracking_object, @@ -233,7 +234,7 @@ static void tracking_error_segment_point_cb(void *userdata, marker_position[1] = (marker->pos[1] + track->offset[1]) * data->height * data->aspy; sub_v2_v2v2(delta, reprojected_position, marker_position); - reprojection_error = len_v2(delta) * track->weight; + reprojection_error = len_v2(delta) * weight; glVertex2f(scene_framenr, reprojection_error); } |