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/editscreen.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/editscreen.c')
-rw-r--r-- | source/blender/src/editscreen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/editscreen.c b/source/blender/src/editscreen.c index 15c3d8c6fec..541790ec98e 100644 --- a/source/blender/src/editscreen.c +++ b/source/blender/src/editscreen.c @@ -2174,10 +2174,10 @@ void filterNDOFvalues(float *sbval) int i=0; float max = 0.0; - for (i =0; i<5;i++) + for (i =0; i<6;i++) if (fabs(sbval[i]) > max) max = fabs(sbval[i]); - for (i =0; i<5;i++) + for (i =0; i<6;i++) if (fabs(sbval[i]) != max ) sbval[i]=0.0; } |