aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llface.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:54 -0500
committerJacek Antonelli2008-08-15 23:44:54 -0500
commitb2afb8800bb033a04bb3ecdf0363068d56648ef1 (patch)
tree3568129b5bbddb47cd39d622b4137a8fbff4abaf /linden/indra/newview/llface.cpp
parentSecond Life viewer sources 1.14.0.1 (diff)
downloadmeta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.zip
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.gz
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.bz2
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.xz
Second Life viewer sources 1.15.0.2
Diffstat (limited to 'linden/indra/newview/llface.cpp')
-rw-r--r--linden/indra/newview/llface.cpp37
1 files changed, 19 insertions, 18 deletions
diff --git a/linden/indra/newview/llface.cpp b/linden/indra/newview/llface.cpp
index e46fcd3..3b47e21 100644
--- a/linden/indra/newview/llface.cpp
+++ b/linden/indra/newview/llface.cpp
@@ -4,6 +4,7 @@
4 * 4 *
5 * Copyright (c) 2001-2007, Linden Research, Inc. 5 * Copyright (c) 2001-2007, Linden Research, Inc.
6 * 6 *
7 * Second Life Viewer Source Code
7 * The source code in this file ("Source Code") is provided by Linden Lab 8 * The source code in this file ("Source Code") is provided by Linden Lab
8 * to you under the terms of the GNU General Public License, version 2.0 9 * to you under the terms of the GNU General Public License, version 2.0
9 * ("GPL"), unless you have obtained a separate licensing agreement 10 * ("GPL"), unless you have obtained a separate licensing agreement
@@ -250,8 +251,6 @@ void LLFace::setDrawable(LLDrawable *drawable)
250 251
251void LLFace::setSize(const S32 num_vertices, const S32 num_indices) 252void LLFace::setSize(const S32 num_vertices, const S32 num_indices)
252{ 253{
253 LLMemType mt1(LLMemType::MTYPE_DRAWABLE);
254
255 mGeomCount = num_vertices; 254 mGeomCount = num_vertices;
256 mIndicesCount = num_indices; 255 mIndicesCount = num_indices;
257} 256}
@@ -750,7 +749,18 @@ BOOL LLFace::genVolumeBBoxes(const LLVolume &volume, S32 f,
750 { 749 {
751 size.scaleVec(mDrawablep->getVObj()->getScale()); 750 size.scaleVec(mDrawablep->getVObj()->getScale());
752 } 751 }
753 LLQuaternion rotation = LLQuaternion(mat_normal); 752
753 LLMatrix3 mat = mat_normal;
754 LLVector3 x = mat.getFwdRow();
755 LLVector3 y = mat.getLeftRow();
756 LLVector3 z = mat.getUpRow();
757 x.normVec();
758 y.normVec();
759 z.normVec();
760
761 mat.setRows(x,y,z);
762
763 LLQuaternion rotation = LLQuaternion(mat);
754 764
755 LLVector3 v[4]; 765 LLVector3 v[4];
756 //get 4 corners of bounding box 766 //get 4 corners of bounding box
@@ -934,7 +944,7 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume,
934 LLVector2 tmin, tmax; 944 LLVector2 tmin, tmax;
935 945
936 const LLTextureEntry *tep = mVObjp->getTE(f); 946 const LLTextureEntry *tep = mVObjp->getTE(f);
937 U8 bump_code = tep ? bump_code = tep->getBumpmap() : 0; 947 U8 bump_code = tep ? tep->getBumpmap() : 0;
938 948
939 if (rebuild_tcoord) 949 if (rebuild_tcoord)
940 { 950 {
@@ -969,20 +979,11 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume,
969 } 979 }
970 else 980 else
971 { 981 {
972 //if (mode & LLViewerTextureAnim::TRANSLATE) 982 os = ot = 0.f;
973 { 983 r = 0.f;
974 os = ot = 0.f; 984 cos_ang = 1.f;
975 } 985 sin_ang = 0.f;
976 //if (mode & LLViewerTextureAnim::ROTATE) 986 ms = mt = 1.f;
977 {
978 r = 0.f;
979 cos_ang = 1.f;
980 sin_ang = 0.f;
981 }
982 //if (mode & LLViewerTextureAnim::SCALE)
983 {
984 ms = mt = 1.f;
985 }
986 } 987 }
987 } 988 }
988 989