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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2004-05-03 17:23:19 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2004-05-03 17:23:19 +0400
commit0c64d26db39870443a35891580c5c53dd958c163 (patch)
tree998290adf7a7a6efb7e8a0d79ac0021e808db664 /source/blender/src/editface.c
parentb2d1b7cf891a610d5087c31e9ee3c82156c2a0e6 (diff)
Fixed a bug where From Window mapping in perspective view would give strange
results, caused by a little typo. The solution was proposed by bjornmose.
Diffstat (limited to 'source/blender/src/editface.c')
-rw-r--r--source/blender/src/editface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/editface.c b/source/blender/src/editface.c
index ee35b916019..96672ab6b2e 100644
--- a/source/blender/src/editface.c
+++ b/source/blender/src/editface.c
@@ -219,7 +219,7 @@ static void uv_calc_shift_project(float *target, float *shift, float rotmat[][4]
/* almost project_short */
Mat4MulVec4fl(G.vd->persmat,pv4);
- if (fabs(pv[3]) > 0.00001) { /* avoid division by zero */
+ if (fabs(pv4[3]) > 0.00001) { /* avoid division by zero */
target[0] = dx/2.0 + (dx/2.0)*pv4[0]/pv4[3];
target[1] = dy/2.0 + (dy/2.0)*pv4[1]/pv4[3];
}