diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_clip/clip_graph_draw.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/editors/space_clip/clip_graph_draw.c b/source/blender/editors/space_clip/clip_graph_draw.c index 22b70b82902..9beb8edd914 100644 --- a/source/blender/editors/space_clip/clip_graph_draw.c +++ b/source/blender/editors/space_clip/clip_graph_draw.c @@ -123,10 +123,16 @@ static void tracking_segment_end_cb(void *UNUSED(userdata)) glLineWidth(1.0f); } +typedef struct TrackMotionCurveUserData { + MovieTrackingTrack *act_track; + bool sel; + float xscale, yscale, hsize; +} TrackMotionCurveUserData; + static void tracking_segment_knot_cb(void *userdata, MovieTrackingTrack *track, MovieTrackingMarker *marker, int coord, int scene_framenr, float val) { - struct { MovieTrackingTrack *act_track; bool sel; float xscale, yscale, hsize; } *data = userdata; + TrackMotionCurveUserData *data = (TrackMotionCurveUserData *) userdata; int sel = 0, sel_flag; if (track != data->act_track) @@ -151,7 +157,7 @@ static void draw_tracks_curves(View2D *v2d, SpaceClip *sc) MovieTracking *tracking = &clip->tracking; MovieTrackingTrack *act_track = BKE_tracking_track_get_active(tracking); int width, height; - struct { MovieTrackingTrack *act_track; bool sel; float xscale, yscale, hsize; } userdata; + TrackMotionCurveUserData userdata; BKE_movieclip_get_size(clip, &sc->user, &width, &height); |