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:
authorJean-Luc Peurière <jlp@nerim.net>2007-07-31 21:45:26 +0400
committerJean-Luc Peurière <jlp@nerim.net>2007-07-31 21:45:26 +0400
commita0c98b95d52c0f627e59edfb32705827b3c96070 (patch)
treec69b37f1f4bf5671a09aec2ed72a6010e0188489 /source/blender/src/view.c
parentdf81fa977e12d8f6e5733e51d9be503b2cc67f14 (diff)
transform mode commit
you can now translate or rotate a selected object in the third method. either in object or edit mode. Note : the method is not ideal, as we create a full transform loop for each component of the transform. However it is this way handled in same way as other means of input
Diffstat (limited to 'source/blender/src/view.c')
-rw-r--r--source/blender/src/view.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/source/blender/src/view.c b/source/blender/src/view.c
index 029222963b6..c2aaee81ff0 100644
--- a/source/blender/src/view.c
+++ b/source/blender/src/view.c
@@ -2214,3 +2214,22 @@ void smooth_view_to_camera(View3D *v3d)
v3d->persp=2;
}
}
+
+void ndof_transform(void)
+{
+ float fval[7];
+
+ getndof(fval);
+
+ if (G.vd->ndoffilter)
+ filterNDOFvalues(fval);
+
+ fval[0] = fval[0] * (1.0f/1024.0f);
+ fval[1] = -fval[1] * (1.0f/1024.0f); // axis inversion
+ fval[2] = -fval[2] * (1.0f/1024.0f); // axis inversion
+ fval[3] = fval[3] * (1.0f/8024.0f);
+ fval[4] = fval[4] * (1.0f/8024.0f);
+ fval[5] = fval[5] * (1.0f/8024.0f);
+
+ ndof_do_transform(fval);
+}