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:
authorCampbell Barton <ideasman42@gmail.com>2007-05-01 04:01:20 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-05-01 04:01:20 +0400
commit286eb351f06ad5d89a7ebdfe4171900e96aa239d (patch)
tree7ca9937a2288a8b0dc6dae4450c40807a18a0cef /source
parent3648d5e06c35648665f0c4c9535ea69a22d2d86f (diff)
tweaks to fly mode.
* acceleration made it a bit fast. halved the speed. * holding shift make mouse wheel effect 1/10th as well as MMB mouse panning.
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/editview.c22
1 files changed, 18 insertions, 4 deletions
diff --git a/source/blender/src/editview.c b/source/blender/src/editview.c
index f4694120f74..9bed12cb3da 100644
--- a/source/blender/src/editview.c
+++ b/source/blender/src/editview.c
@@ -2281,7 +2281,12 @@ void fly(void)
time_wheel = 1+ (10 - (20*MIN2(time_wheel, 0.5))); /* 0-0.5 -> 0-5.0 */
if (speed<0) speed=0;
- else speed+= G.vd->grid * time_wheel;
+ else {
+ if (G.qual & LR_SHIFTKEY)
+ speed+= G.vd->grid*time_wheel*0.1;
+ else
+ speed+= G.vd->grid*time_wheel;
+ }
} else if(toets==PADMINUS || toets==MINUSKEY || toets==WHEELDOWNMOUSE) {
time_currwheel= PIL_check_seconds_timer();
@@ -2290,7 +2295,12 @@ void fly(void)
time_wheel = 1+ (10 - (20*MIN2(time_wheel, 0.5))); /* 0-0.5 -> 0-5.0 */
if (speed>0) speed=0;
- else speed-= G.vd->grid*time_wheel;
+ else {
+ if (G.qual & LR_SHIFTKEY)
+ speed-= G.vd->grid*time_wheel*0.1;
+ else
+ speed-= G.vd->grid*time_wheel;
+ }
} else if (toets==MIDDLEMOUSE) {
/* make it so the camera direction dosent follow the view
@@ -2392,7 +2402,11 @@ void fly(void)
dvec_tmp[0]= -moffset[0];
dvec_tmp[1]= -moffset[1];
dvec_tmp[2]= 0;
- /* z axis can stay teh same, just keep costing */
+
+ if (G.qual & LR_SHIFTKEY) {
+ dvec_tmp[0] *= 0.1;
+ dvec_tmp[1] *= 0.1;
+ }
Mat3MulVecfl(mat, dvec_tmp);
VecMulf(dvec_tmp, time_redraw*200.0 * G.vd->grid);
@@ -2492,7 +2506,7 @@ void fly(void)
Mat3MulVecfl(mat, dvec_tmp);
- VecMulf(dvec_tmp, speed*time_redraw*0.5);
+ VecMulf(dvec_tmp, speed*time_redraw*0.25);
}
}