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-07-24 04:40:39 +0400
committerMike Erwin <significant.bit@gmail.com>2011-07-24 04:40:39 +0400
commited232c756d25f5fe16370c7eba332f2d78cd128e (patch)
treecc9e1b05db0582c4da9c455e2fb2a3c3efc1e035 /source/blender/windowmanager
parentb9f3ff5435d78b4538b417849edf60238fa54e34 (diff)
ndof overall sensitivity is now live
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_event_system.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c
index 26d72906ece..ad8df1ef0bb 100644
--- a/source/blender/windowmanager/intern/wm_event_system.c
+++ b/source/blender/windowmanager/intern/wm_event_system.c
@@ -2314,13 +2314,15 @@ static void attach_ndof_data(wmEvent* event, const GHOST_TEventNDOFMotionData* g
{
wmNDOFMotionData* data = MEM_mallocN(sizeof(wmNDOFMotionData), "customdata NDOF");
- data->tx = ghost->tx;
- data->ty = ghost->ty;
- data->tz = ghost->tz;
+ const float s = U.ndof_sensitivity;
- data->rx = ghost->rx;
- data->ry = ghost->ry;
- data->rz = ghost->rz;
+ data->tx = s * ghost->tx;
+ data->ty = s * ghost->ty;
+ data->tz = s * ghost->tz;
+
+ data->rx = s * ghost->rx;
+ data->ry = s * ghost->ry;
+ data->rz = s * ghost->rz;
data->dt = ghost->dt;