[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [55903] trunk/blender/source/blender/ editors/space_view3d/view3d_edit.c: rewind part of r55893, smooth-view for pan was annoying with mousewheel.

Campbell Barton ideasman42 at gmail.com
Mon Apr 8 13:45:20 CEST 2013


Revision: 55903
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=55903
Author:   campbellbarton
Date:     2013-04-08 11:45:20 +0000 (Mon, 08 Apr 2013)
Log Message:
-----------
rewind part of r55893, smooth-view for pan was annoying with mousewheel.

Revision Links:
--------------
    http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=55893

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_view3d/view3d_edit.c

Modified: trunk/blender/source/blender/editors/space_view3d/view3d_edit.c
===================================================================
--- trunk/blender/source/blender/editors/space_view3d/view3d_edit.c	2013-04-08 11:26:56 UTC (rev 55902)
+++ trunk/blender/source/blender/editors/space_view3d/view3d_edit.c	2013-04-08 11:45:20 UTC (rev 55903)
@@ -3465,11 +3465,11 @@
 
 static int viewpan_exec(bContext *C, wmOperator *op)
 {
+	ScrArea *sa = CTX_wm_area(C);
 	ARegion *ar = CTX_wm_region(C);
 	View3D *v3d = CTX_wm_view3d(C);
 	RegionView3D *rv3d = CTX_wm_region_view3d(C);
 	float vec[3];
-	float ofs[3];
 	const float co_zero[3] = {0.0f};
 	float mval_f[2] = {0.0f, 0.0f};
 	float zfac;
@@ -3485,10 +3485,17 @@
 	else if (pandir == V3D_VIEW_PANUP)     { mval_f[1] = -25.0f; }
 	else if (pandir == V3D_VIEW_PANDOWN)   { mval_f[1] =  25.0f; }
 	ED_view3d_win_to_delta(ar, mval_f, vec, zfac);
-	add_v3_v3v3(ofs, rv3d->ofs, vec);
+	add_v3_v3(rv3d->ofs, vec);
 
-	view3d_smooth_view(C, v3d, ar, NULL, NULL, ofs, NULL, NULL, NULL);
+	if (rv3d->viewlock & RV3D_BOXVIEW)
+		view3d_boxview_sync(sa, ar);
 
+	ED_view3d_depth_tag_update(rv3d);
+
+	ED_view3d_camera_lock_sync(v3d, rv3d);
+
+	ED_region_tag_redraw(ar);
+
 	return OPERATOR_FINISHED;
 }
 




More information about the Bf-blender-cvs mailing list