diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-06-13 01:07:14 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-06-13 01:07:14 +0400 |
commit | aace651e51cfaa725847ef1345418ec6a6e42b6e (patch) | |
tree | d10d45962f5a2d8783949b071f4a9204a85fbbf1 /source/blender/editors/space_clip/clip_graph_draw.c | |
parent | e1241030db424ce10e9fee04076ff7e209eac98c (diff) |
Fix camera curve in clip editor not being remapped by a clip's start frame
Diffstat (limited to 'source/blender/editors/space_clip/clip_graph_draw.c')
-rw-r--r-- | source/blender/editors/space_clip/clip_graph_draw.c | 4 |
1 files changed, 3 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 ce48681c5bd..d3d01f9f87e 100644 --- a/source/blender/editors/space_clip/clip_graph_draw.c +++ b/source/blender/editors/space_clip/clip_graph_draw.c @@ -189,6 +189,7 @@ static void draw_frame_curves(SpaceClip *sc) for (i = 0; i < reconstruction->camnr; i++) { MovieReconstructedCamera *camera = &reconstruction->cameras[i]; + int framenr; if (lines && camera->framenr != prevfra + 1) { glEnd(); @@ -200,7 +201,8 @@ static void draw_frame_curves(SpaceClip *sc) lines = 1; } - glVertex2f(camera->framenr, camera->error); + framenr = BKE_movieclip_remap_clip_to_scene_frame(clip, camera->framenr); + glVertex2f(framenr, camera->error); prevfra = camera->framenr; } |