aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmath/llvolume.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-12-12 23:24:52 -0600
committerJacek Antonelli2008-12-12 23:25:00 -0600
commitd1345838c6e36c35dbe3a6b683eb8ffe274b024a (patch)
tree5e727fcabbd5cf0337c11192bfe4db6191c7b044 /linden/indra/llmath/llvolume.cpp
parentSecond Life viewer sources 1.22.2-RC (diff)
downloadmeta-impy-d1345838c6e36c35dbe3a6b683eb8ffe274b024a.zip
meta-impy-d1345838c6e36c35dbe3a6b683eb8ffe274b024a.tar.gz
meta-impy-d1345838c6e36c35dbe3a6b683eb8ffe274b024a.tar.bz2
meta-impy-d1345838c6e36c35dbe3a6b683eb8ffe274b024a.tar.xz
Second Life viewer sources 1.22.3-RC
Diffstat (limited to 'linden/indra/llmath/llvolume.cpp')
-rw-r--r--linden/indra/llmath/llvolume.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/linden/indra/llmath/llvolume.cpp b/linden/indra/llmath/llvolume.cpp
index 7b6c6a9..be03090 100644
--- a/linden/indra/llmath/llvolume.cpp
+++ b/linden/indra/llmath/llvolume.cpp
@@ -1759,13 +1759,21 @@ BOOL LLVolume::generate()
1759 1759
1760 if (regenPath || regenProf ) 1760 if (regenPath || regenProf )
1761 { 1761 {
1762 sNumMeshPoints -= mMesh.size();
1763 mMesh.resize(mProfilep->mProfile.size() * mPathp->mPath.size());
1764 sNumMeshPoints += mMesh.size();
1765
1766 S32 sizeS = mPathp->mPath.size(); 1762 S32 sizeS = mPathp->mPath.size();
1767 S32 sizeT = mProfilep->mProfile.size(); 1763 S32 sizeT = mProfilep->mProfile.size();
1768 1764
1765 //debug info
1766 if((U32)(sizeS * sizeT) > (1u << 20))
1767 {
1768 llinfos << "sizeS: " << sizeS << " sizeT: " << sizeT << llendl ;
1769 llinfos << "path_detail : " << path_detail << " split: " << split << " profile_detail: " << profile_detail << llendl ;
1770 llinfos << mParams << llendl ;
1771 }
1772
1773 sNumMeshPoints -= mMesh.size();
1774 mMesh.resize(sizeT * sizeS);
1775 sNumMeshPoints += mMesh.size();
1776
1769 //generate vertex positions 1777 //generate vertex positions
1770 1778
1771 // Run along the path. 1779 // Run along the path.