summaryrefslogtreecommitdiff
path: root/indra/newview/llface.cpp
diff options
context:
space:
mode:
authorJonathan "Geenz" Goodman <geenz@geenzo.com>2024-01-24 17:07:56 -0800
committerJonathan "Geenz" Goodman <geenz@geenzo.com>2024-01-24 17:07:56 -0800
commit2510134f40c2edd2eea40f486f094517b8ffaa51 (patch)
tree587cb9570386e50ea009112dba5c9ea0d56ffa51 /indra/newview/llface.cpp
parenta888531fd1fbf7de0d71b4d04195d4267c882154 (diff)
https://github.com/secondlife/viewer-issues/issues/23 Cleaning out some unused code.
Diffstat (limited to 'indra/newview/llface.cpp')
-rw-r--r--indra/newview/llface.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp
index 2c04224fa0..69e43bb458 100644
--- a/indra/newview/llface.cpp
+++ b/indra/newview/llface.cpp
@@ -488,11 +488,6 @@ U16 LLFace::getGeometry(LLStrider<LLVector3> &vertices, LLStrider<LLVector3> &no
return mGeomIndex;
}
-LLVector3 LLFace::getAverageNormal()
-{
- return mAverageNormal;
-}
-
void LLFace::updateCenterAgent()
{
if (mDrawablep->isActive())
@@ -1895,20 +1890,13 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume,
LLVector4a* src = vf.mNormals;
LLVector4a* end = src+num_vertices;
- LLVector4a normal_total;
-
while (src < end)
{
LLVector4a normal;
mat_normal.rotate(*src++, normal);
normal.store4a(normals);
- normal_total.add(normal);
normals += 4;
}
-
- normal_total.div(LLVector4a(num_vertices));
-
- mAverageNormal = LLVector3(normal_total[0], normal_total[1], normal_total[2]);
}
if (rebuild_tangent)