Bugfixes. Should fix bizarre cam behavior and lighting issues on carved/hollowed prims.

This commit is contained in:
Shyotl
2011-07-20 15:07:58 -05:00
parent bc221a573e
commit fe0cd9f702
5 changed files with 7 additions and 5 deletions

View File

@@ -927,7 +927,7 @@ void LLFace::getPlanarProjectedParams(LLQuaternion* face_rot, LLVector3* face_po
LLVector4a normal4a;
normal4a.load3(vf.mVertices[0].mNormal.mV);
LLVector4a binormal4a;
binormal4a.load3(vf.mVertices[0].mNormal.mV);
binormal4a.load3(vf.mVertices[0].mBinormal.mV);
LLVector2 projected_binormal;
planarProjection(projected_binormal, normal4a, *vf.mCenter, binormal4a);
projected_binormal -= LLVector2(0.5f, 0.5f); // this normally happens in xform()