summaryrefslogtreecommitdiff
path: root/indra/llmath
diff options
context:
space:
mode:
authorsimon <none@none>2013-05-15 11:00:00 -0700
committersimon <none@none>2013-05-15 11:00:00 -0700
commitec5bd94d59247e600f8f8702a543f99d40930d20 (patch)
tree903dc5d86a38a9a8f57e49c26e71d12c71b34488 /indra/llmath
parentf111b5b1135ee31434acb81d5a3e63e4812e257f (diff)
BUG-2581 : [simon-ll-viewer-cat] Path cut, hollow and slice break planar
texture mapping on prims. Credits to DaveP
Diffstat (limited to 'indra/llmath')
-rwxr-xr-xindra/llmath/llvolume.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/llmath/llvolume.cpp b/indra/llmath/llvolume.cpp
index 7751ef87ee..317d15f84e 100755
--- a/indra/llmath/llvolume.cpp
+++ b/indra/llmath/llvolume.cpp
@@ -5604,16 +5604,16 @@ BOOL LLVolumeFace::createCap(LLVolume* volume, BOOL partial_build)
LLVector4a binormal;
calc_binormal_from_triangle(binormal,
*mCenter, cuv,
- pos[0], tc[0],
- pos[1], tc[1]);
+ mPositions[0], mTexCoords[0],
+ mPositions[1], mTexCoords[1]);
binormal.normalize3fast();
LLVector4a normal;
LLVector4a d0, d1;
- d0.setSub(*mCenter, pos[0]);
- d1.setSub(*mCenter, pos[1]);
+ d0.setSub(*mCenter, mPositions[0]);
+ d1.setSub(*mCenter, mPositions[1]);
if (mTypeMask & TOP_MASK)
{