summaryrefslogtreecommitdiff
path: root/indra/newview/llface.cpp
diff options
context:
space:
mode:
authorJosh Bell <josh@lindenlab.com>2007-04-04 19:49:24 +0000
committerJosh Bell <josh@lindenlab.com>2007-04-04 19:49:24 +0000
commit98740db8fd5875033d08b6aef6d9bf5c3c49eeee (patch)
treedd0e83734e50ffd4d9f87eb2ed4091f867f2f1fd /indra/newview/llface.cpp
parentaa96d1fddff3d5bf68a5014229a0d20584937222 (diff)
svn merge -r 59826:59968 svn+ssh://svn.lindenlab.com/svn/linden/branches/maintenance --> release
Diffstat (limited to 'indra/newview/llface.cpp')
-rw-r--r--indra/newview/llface.cpp32
1 files changed, 17 insertions, 15 deletions
diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp
index b3e68e24df..b96ffa46fe 100644
--- a/indra/newview/llface.cpp
+++ b/indra/newview/llface.cpp
@@ -729,7 +729,18 @@ BOOL LLFace::genVolumeBBoxes(const LLVolume &volume, S32 f,
{
size.scaleVec(mDrawablep->getVObj()->getScale());
}
- LLQuaternion rotation = LLQuaternion(mat_normal);
+
+ LLMatrix3 mat = mat_normal;
+ LLVector3 x = mat.getFwdRow();
+ LLVector3 y = mat.getLeftRow();
+ LLVector3 z = mat.getUpRow();
+ x.normVec();
+ y.normVec();
+ z.normVec();
+
+ mat.setRows(x,y,z);
+
+ LLQuaternion rotation = LLQuaternion(mat);
LLVector3 v[4];
//get 4 corners of bounding box
@@ -948,20 +959,11 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume,
}
else
{
- //if (mode & LLViewerTextureAnim::TRANSLATE)
- {
- os = ot = 0.f;
- }
- //if (mode & LLViewerTextureAnim::ROTATE)
- {
- r = 0.f;
- cos_ang = 1.f;
- sin_ang = 0.f;
- }
- //if (mode & LLViewerTextureAnim::SCALE)
- {
- ms = mt = 1.f;
- }
+ os = ot = 0.f;
+ r = 0.f;
+ cos_ang = 1.f;
+ sin_ang = 0.f;
+ ms = mt = 1.f;
}
}