summaryrefslogtreecommitdiff
path: root/indra/llmath
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2010-06-10 14:58:02 -0500
committerDave Parks <davep@lindenlab.com>2010-06-10 14:58:02 -0500
commit9440f84dca48e3e2f6022dbf5f916d6439c7a826 (patch)
tree01f80a2deb4d72cb3f2cd5112f93793f6bfdb8e3 /indra/llmath
parentf9b13d8f8510b1f7f02fcf92685471461b79858e (diff)
Potential fix for busted binormals on cubes.
Diffstat (limited to 'indra/llmath')
-rw-r--r--indra/llmath/llvolume.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llmath/llvolume.cpp b/indra/llmath/llvolume.cpp
index 05868e3517..ba5d5e7ca1 100644
--- a/indra/llmath/llvolume.cpp
+++ b/indra/llmath/llvolume.cpp
@@ -5566,6 +5566,8 @@ BOOL LLVolumeFace::createUnCutCubeCap(LLVolume* volume, BOOL partial_build)
corners[0].getPosition(), corners[0].mTexCoord,
corners[1].getPosition(), corners[1].mTexCoord,
corners[2].getPosition(), corners[2].mTexCoord);
+
+ binormal.normalize3fast();
S32 size = (grid_size+1)*(grid_size+1);
resizeVertices(size);