Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-07-21 13:59:08 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-07-21 13:59:08 +0400
commitd8829122bad422303b697fb226ddbd081867c2b3 (patch)
tree530e4501651f663b5ca1be6d177d98df9ce72dc3
parent177ea51fab2bbbc24a6089a294028694e4344e8e (diff)
using shift +/- to dolly with a locked camera now works.
-rw-r--r--source/blender/editors/space_view3d/view3d_edit.c7
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);