[Bf-blender-cvs] [d8d7d8e] master: NDOF: allow panning in view3d.ndof_orbit_zoom, but forward is still zoom

Campbell Barton noreply at git.blender.org
Mon Feb 17 12:19:56 CET 2014


Commit: d8d7d8e1e3c18bee520f308eead4cf967fbd7b87
Author: Campbell Barton
Date:   Mon Feb 17 22:05:10 2014 +1100
https://developer.blender.org/rBd8d7d8e1e3c18bee520f308eead4cf967fbd7b87

NDOF: allow panning in view3d.ndof_orbit_zoom, but forward is still zoom

This makes it so NDOF without any modifiers pressed can pan and orbit
which means you have full 6dof, however if you only want to orbit+zoom
that works as before.

also change logic so rotation is disabled for axis views (orbit operator
will exit axis views still, as with mouse orbit)

===================================================================

M	source/blender/editors/space_view3d/view3d_edit.c

===================================================================

diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c
index 914b698..8a11b33 100644
--- a/source/blender/editors/space_view3d/view3d_edit.c
+++ b/source/blender/editors/space_view3d/view3d_edit.c
@@ -1435,9 +1435,9 @@ static int ndof_orbit_zoom_invoke(bContext *C, wmOperator *op, const wmEvent *ev
 		rv3d->rot_angle = 0.0f;
 
 		if (ndof->progress != P_FINISHING) {
-			const bool has_rotation = NDOF_HAS_ROTATE;
+			const bool has_rotation = NDOF_HAS_ROTATE && (RV3D_VIEW_IS_AXIS(rv3d->view) == false);
 			/* if we can't rotate, fallback to translate (locked axis views) */
-			const bool has_translate = NDOF_HAS_TRANSLATE && (rv3d->viewlock & RV3D_LOCKED);
+			const bool has_translate = NDOF_HAS_TRANSLATE;
 			/* always zoom since this is the main purpose of the function */
 			const bool has_zoom = true;




More information about the Bf-blender-cvs mailing list