diff options
author | Jean-Luc Peurière <jlp@nerim.net> | 2008-02-18 19:31:25 +0300 |
---|---|---|
committer | Jean-Luc Peurière <jlp@nerim.net> | 2008-02-18 19:31:25 +0300 |
commit | 09bb791249da886521759ead88b9b36673f6968f (patch) | |
tree | e28e28a73adb190118cc0668101d3b47427feddd /source/blender/src/transform_ndofinput.c | |
parent | 5e97b48fceb60d5b04adea457fc95138cf12d454 (diff) |
making the new transform methods work on Os X
getndof return a 7 floats array, but only the first 6 are axis
the last one is a delta and seems to be much smaller on windows systems
this value should be ignored for the moment
Diffstat (limited to 'source/blender/src/transform_ndofinput.c')
-rw-r--r-- | source/blender/src/transform_ndofinput.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/src/transform_ndofinput.c b/source/blender/src/transform_ndofinput.c index 34ab8b95e7b..0de4b026b52 100644 --- a/source/blender/src/transform_ndofinput.c +++ b/source/blender/src/transform_ndofinput.c @@ -62,7 +62,7 @@ void initNDofInput(NDofInput *n) void resetNDofInput(NDofInput *n) { int i; - for(i = 0; i < 7; i++) + for(i = 0; i < 6; i++) { n->fval[i] = 0.0f; } @@ -113,7 +113,7 @@ void applyNDofInput(NDofInput *n, float *vec) { int i, j; - for (i = 0, j = 0; i < 7; i++) + for (i = 0, j = 0; i < 6; i++) { if (n->axis & (1 << i)) { @@ -136,7 +136,7 @@ int updateNDofMotion(NDofInput *n) if (G.vd->ndoffilter) filterNDOFvalues(fval); - for(i = 0; i < 7; i++) + for(i = 0; i < 6; i++) { if (!retval && fval[i] != 0.0f) { |