LLVOVolume::getApproximateFaceNormal bug fix

This commit is contained in:
Apelsin
2013-08-02 00:11:22 -07:00
parent 52f6c5830c
commit 47b59d146b

View File

@@ -2074,7 +2074,7 @@ LLVector3 LLVOVolume::getApproximateFaceNormal(U8 face_id)
result.add(face.mNormals[i]);
}
LLVector3 ret(result.getF32ptr());
ret = LLVector3(result.getF32ptr());
ret = volumeDirectionToAgent(ret);
ret.normVec();
}