summaryrefslogtreecommitdiff
path: root/indra/llmath
diff options
context:
space:
mode:
authorruslantproductengine <ruslantproductengine@lindenlab.com>2014-11-24 18:41:51 +0200
committerruslantproductengine <ruslantproductengine@lindenlab.com>2014-11-24 18:41:51 +0200
commit4364a8cccd1cbfdbea93b4332416fad1f6598436 (patch)
tree2e4627db3a91d0e0f1d9a82873484ffea20b9f03 /indra/llmath
parentfa068dffd023f35d161753009e6079edfe2ad012 (diff)
MAINT-3529 FIXED Certain pathcuts made to a cube cause some faces to not react to sunlight or local lights
Diffstat (limited to 'indra/llmath')
-rwxr-xr-xindra/llmath/llvolume.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/llmath/llvolume.cpp b/indra/llmath/llvolume.cpp
index 98ff36c363..ee2d57a562 100755
--- a/indra/llmath/llvolume.cpp
+++ b/indra/llmath/llvolume.cpp
@@ -5970,7 +5970,10 @@ BOOL LLVolumeFace::createCap(LLVolume* volume, BOOL partial_build)
}
else
{ //degenerate, make up a value
- normal.set(0,0,1);
+ if(normal.getF32ptr()[2] >= 0)
+ normal.set(0.f,0.f,1.f);
+ else
+ normal.set(0.f,0.f,-1.f);
}
llassert(llfinite(normal.getF32ptr()[0]));