MAINT-3529 FIXED Certain pathcuts made to a cube cause some faces to not react to sunlight or local lights

meow-7.2.2
ruslantproductengine 2014-11-24 18:41:51 +02:00
parent fa068dffd0
commit 4364a8cccd
1 changed files with 4 additions and 1 deletions

View File

@ -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]));