diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-01-12 13:39:59 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-01-12 13:39:59 +0300 |
commit | e9291b78e2346c319c9bc1e31ae41e6b69859380 (patch) | |
tree | ef1ea5e3411e843a4f11bc166ef381fb56b4162b /source/blender/src/editview.c | |
parent | 74291cc5039899fdf7fd0edab3a27c4219cf6ce4 (diff) |
forgot to convert the matrix to a 3x3. worked but raised a warning.
Diffstat (limited to 'source/blender/src/editview.c')
-rw-r--r-- | source/blender/src/editview.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/editview.c b/source/blender/src/editview.c index 3f201d101f6..edf4f09dc41 100644 --- a/source/blender/src/editview.c +++ b/source/blender/src/editview.c @@ -2149,7 +2149,8 @@ void fly(void) /* detect weather to start with Z locking */ upvec[0]=1; upvec[1]=0; upvec[2]=0; - Mat3MulVecfl(G.vd->viewinv, upvec); + Mat3CpyMat4(mat, G.vd->viewinv); + Mat3MulVecfl(mat, upvec); if (fabs(upvec[2]) < 0.1) zlock = 1; upvec[0]=0; upvec[1]=0; upvec[2]=0; @@ -2186,7 +2187,6 @@ void fly(void) G.vd->dist= 0.0; upvec[2]=dist_backup; /*x and y are 0*/ - Mat3CpyMat4(mat, G.vd->viewinv); Mat3MulVecfl(mat, upvec); VecSubf(G.vd->ofs, G.vd->ofs, upvec); /*Done with correcting for the dist*/ |