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
path: root/source
diff options
context:
space:
mode:
authorJean-Luc Peurière <jlp@nerim.net>2007-07-30 01:48:26 +0400
committerJean-Luc Peurière <jlp@nerim.net>2007-07-30 01:48:26 +0400
commit6fd555a4cc5f95a853583fce0d37aecf9fa05309 (patch)
treecdd1a8abda654f7a8590385f92825d83e64e2c3b /source
parentbfa77f611f750510e1ee0eda15d987990281ef7c (diff)
tweak of parameters following Martin report
also update view type so that grid follow
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/view.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/source/blender/src/view.c b/source/blender/src/view.c
index 06782b1a873..7594fec45dc 100644
--- a/source/blender/src/view.c
+++ b/source/blender/src/view.c
@@ -1036,6 +1036,8 @@ void viewmoveNDOF(int mode)
float diff[4];
float d, curareaX, curareaY;
+ //reset view type
+ G.vd->view = 0;
//printf("passing here \n");
/* Sensitivity will control how fast the view rotates. The value was
@@ -1043,8 +1045,8 @@ void viewmoveNDOF(int mode)
* Perhaps this should be a configurable user parameter.
*/
float psens = 0.005f * (float) U.ndof_pan; /* pan sensitivity */
- const float rsens = 0.005f * (float) U.ndof_rotate; /* rotate sensitivity */
- const float zsens = 0.1f; /* zoom sensitivity */
+ float rsens = 0.005f * (float) U.ndof_rotate; /* rotate sensitivity */
+ float zsens = 0.3f; /* zoom sensitivity */
const float minZoom = -30.0f;
const float maxZoom = 300.0f;
@@ -1080,9 +1082,9 @@ void viewmoveNDOF(int mode)
// put scaling back here, was previously in ghostwinlay
- fval[0] = fval[0] * (1.0f/1024.0f);
- fval[1] = fval[1] * (1.0f/1024.0f);
- fval[2] = fval[2] * (1.0f/1024.0f);
+ fval[0] = fval[0] * (1.0f/800.0f);
+ fval[1] = fval[1] * (1.0f/800.0f);
+ fval[2] = fval[2] * (1.0f/800.0f);
fval[3] = fval[3] * 0.00005f;
fval[4] = fval[4] * 0.00005f;
fval[5] = fval[5] * 0.00005f;
@@ -1096,6 +1098,7 @@ void viewmoveNDOF(int mode)
fval[3] = fval[3] * 0.9f;
fval[4] = fval[4] * 0.9f;
fval[5] = fval[5] * 0.9f;
+ zsens *= 8;
}