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:
authorCampbell Barton <ideasman42@gmail.com>2007-01-12 13:39:59 +0300
committerCampbell Barton <ideasman42@gmail.com>2007-01-12 13:39:59 +0300
commite9291b78e2346c319c9bc1e31ae41e6b69859380 (patch)
treeef1ea5e3411e843a4f11bc166ef381fb56b4162b /source/blender/src/editview.c
parent74291cc5039899fdf7fd0edab3a27c4219cf6ce4 (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.c4
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*/