diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-10-29 15:34:26 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-10-29 15:34:26 +0400 |
commit | e4cbb8dd94e59d305ec97c0e5512ea87f2c65def (patch) | |
tree | 053e83a0c945a2778dbc3bb1d2edeebdcaf9e51c /source/blender/editors/space_clip/space_clip.c | |
parent | 393a95b7e3b111ced9721e39ec5ab7800b637598 (diff) |
Camera tracking integration
===========================
- Fixed jump when sliding movie clip with lock to selection enabled and nothing selected.
- Reset offset from locked position when adding new marker.
Diffstat (limited to 'source/blender/editors/space_clip/space_clip.c')
-rw-r--r-- | source/blender/editors/space_clip/space_clip.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_clip/space_clip.c b/source/blender/editors/space_clip/space_clip.c index c2b099a0f2b..78cf98886a6 100644 --- a/source/blender/editors/space_clip/space_clip.c +++ b/source/blender/editors/space_clip/space_clip.c @@ -684,10 +684,10 @@ static void clip_main_area_draw(const bContext *C, ARegion *ar) tmpibuf= ED_space_clip_get_stable_buffer(sc, NULL, NULL, NULL); } - ED_clip_view_selection(sc, ar, 0); - - sc->xof+= sc->xlockof; - sc->yof+= sc->ylockof; + if(ED_clip_view_selection(sc, ar, 0)) { + sc->xof+= sc->xlockof; + sc->yof+= sc->ylockof; + } if(tmpibuf) IMB_freeImBuf(tmpibuf); |