diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-07-21 13:59:08 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-07-21 13:59:08 +0400 |
commit | d8829122bad422303b697fb226ddbd081867c2b3 (patch) | |
tree | 530e4501651f663b5ca1be6d177d98df9ce72dc3 | |
parent | 177ea51fab2bbbc24a6089a294028694e4344e8e (diff) |
using shift +/- to dolly with a locked camera now works.
-rw-r--r-- | source/blender/editors/space_view3d/view3d_edit.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c index 5eec30daf11..bfc64d1d37a 100644 --- a/source/blender/editors/space_view3d/view3d_edit.c +++ b/source/blender/editors/space_view3d/view3d_edit.c @@ -2151,7 +2151,7 @@ static int viewdolly_modal(bContext *C, wmOperator *op, const wmEvent *event) static int viewdolly_exec(bContext *C, wmOperator *op) { - /* View3D *v3d; */ + View3D *v3d; RegionView3D *rv3d; ScrArea *sa; ARegion *ar; @@ -2173,7 +2173,7 @@ static int viewdolly_exec(bContext *C, wmOperator *op) normalize_v3(mousevec); } - /* v3d = sa->spacedata.first; */ /* UNUSED */ + v3d = sa->spacedata.first; rv3d = ar->regiondata; /* overwrite the mouse vector with the view direction (zoom into the center) */ @@ -2192,6 +2192,9 @@ static int viewdolly_exec(bContext *C, wmOperator *op) view3d_boxview_sync(sa, ar); ED_view3d_depth_tag_update(rv3d); + + ED_view3d_camera_lock_sync(v3d, rv3d); + ED_region_tag_redraw(ar); viewops_data_free(C, op); |