summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2010-05-24 17:34:47 -0500
committerDave Parks <davep@lindenlab.com>2010-05-24 17:34:47 -0500
commit62ccc5bb7e9d2c7a1531f2c01b8258e8c8cdfb1a (patch)
treef112b989b79b4c98420166aa5cde7afd25e5e9fa /indra
parent0222829e93bf797c072057ec1dfe36188e052347 (diff)
parentc0b654dd4bee466a2ccbf050e532fb4a05acc549 (diff)
merge
Diffstat (limited to 'indra')
-rw-r--r--indra/llmath/llvolume.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/indra/llmath/llvolume.cpp b/indra/llmath/llvolume.cpp
index 2ff1463b7c..f05e6eb9d9 100644
--- a/indra/llmath/llvolume.cpp
+++ b/indra/llmath/llvolume.cpp
@@ -4187,6 +4187,9 @@ S32 LLVolume::lineSegmentIntersect(const LLVector3& start, const LLVector3& end,
LLVector4a starta, dira;
+ starta.load3(start.mV);
+ dira.load3(dir.mV);
+
LLVector4a* p = (LLVector4a*) face.mPositions;
for (U32 tri = 0; tri < face.mNumIndices/3; tri++)
@@ -4235,17 +4238,10 @@ S32 LLVolume::lineSegmentIntersect(const LLVector3& start, const LLVector3& end,
if (bi_normal != NULL)
{
- if (!face.mBinormals)
- {
- face.createBinormals();
- }
LLVector4* binormal = (LLVector4*) face.mBinormals;
- if (binormal)
- {
- *bi_normal = ((1.f - a - b) * LLVector3(binormal[index1]) +
+ *bi_normal = ((1.f - a - b) * LLVector3(binormal[index1]) +
a * LLVector3(binormal[index2]) +
b * LLVector3(binormal[index3]));
- }
}
}