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:
authorMike Erwin <significant.bit@gmail.com>2011-06-28 00:44:23 +0400
committerMike Erwin <significant.bit@gmail.com>2011-06-28 00:44:23 +0400
commit798f59fe6810a77ce0903f3dd5650d5777a5e5ba (patch)
tree61ef83ddb27cab603e21c409d9b55e13c1d83075 /source/blender/editors/space_view3d/view3d_edit.c
parent0f8a1ed8af11bf7cea9d36330d55fe0e6d15f695 (diff)
Mac ndof using blender view coordinates + small but important typo fixed
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_edit.c')
-rw-r--r--source/blender/editors/space_view3d/view3d_edit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c
index 0e82581e411..15c3d9da84f 100644
--- a/source/blender/editors/space_view3d/view3d_edit.c
+++ b/source/blender/editors/space_view3d/view3d_edit.c
@@ -997,11 +997,11 @@ static int viewndof_invoke(bContext *C, wmOperator *op, wmEvent *event)
ndof->dt = dt = 0.0125f;
- if (ndof->ty) {
+ if (ndof->tz) {
// Zoom!
// velocity should be proportional to the linear velocity attained by rotational motion of same strength
// [got that?]
- // proportional to s = r * theta
+ // proportional to arclength = radius * angle
float zoom_distance = zoom_sensitivity * rv3d->dist * dt * ndof->tz;
rv3d->dist += zoom_distance;