temptative fix for the ndof bug
authorJean-Luc Peurière <jlp@nerim.net>
Sun, 18 May 2008 16:00:13 +0000 (16:00 +0000)
committerJean-Luc Peurière <jlp@nerim.net>
Sun, 18 May 2008 16:00:13 +0000 (16:00 +0000)
if vd.dist is null at a wrong time,
retore to last known good value

source/blender/src/view.c

index 3dae0118bf4098e2e3e1a91738293a46c2d67928..2904ca60a124bb6b63dd40c542009c523bacf519 100644 (file)
@@ -741,7 +741,7 @@ void viewmove(int mode)
        
                // dist correction from other movement devices
                
-       if(dz_flag) {
+       if((dz_flag)||G.vd->dist==0) {
                dz_flag = 0;
                G.vd->dist = m_dist;
                upvec[0] = upvec[1] = 0;