diff options
-rw-r--r-- | ChangeLog.txt | 5 | ||||
-rw-r--r-- | linden/indra/llmath/llvolume.cpp | 12 |
2 files changed, 14 insertions, 3 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index 91be994..2d3d49b 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt | |||
@@ -1,5 +1,10 @@ | |||
1 | 2009-10-04 McCabe Maxsted <hakushakukun@gmail.com> | 1 | 2009-10-04 McCabe Maxsted <hakushakukun@gmail.com> |
2 | 2 | ||
3 | * Changes that should improve sculpty LOD. | ||
4 | |||
5 | modified: linden/indra/llmath/llvolume.cpp | ||
6 | |||
7 | |||
3 | * Fixed mini-map distance label and rounding. | 8 | * Fixed mini-map distance label and rounding. |
4 | 9 | ||
5 | modified: linden/indra/newview/llfloatermap.cpp | 10 | modified: linden/indra/newview/llfloatermap.cpp |
diff --git a/linden/indra/llmath/llvolume.cpp b/linden/indra/llmath/llvolume.cpp index 5603a9c..9aa02ee 100644 --- a/linden/indra/llmath/llvolume.cpp +++ b/linden/indra/llmath/llvolume.cpp | |||
@@ -2198,10 +2198,16 @@ void LLVolume::sculpt(U16 sculpt_width, U16 sculpt_height, S8 sculpt_components, | |||
2198 | S32 requested_sizeS = 0; | 2198 | S32 requested_sizeS = 0; |
2199 | S32 requested_sizeT = 0; | 2199 | S32 requested_sizeT = 0; |
2200 | 2200 | ||
2201 | sculpt_calc_mesh_resolution(sculpt_width, sculpt_height, sculpt_type, mDetail, requested_sizeS, requested_sizeT); | 2201 | // create oblong sculpties with high LOD always |
2202 | F32 sculpt_detail = mDetail; | ||
2203 | if (sculpt_width != sculpt_height && sculpt_detail < 4.0) | ||
2204 | { | ||
2205 | sculpt_detail = 4.0; | ||
2206 | } | ||
2207 | sculpt_calc_mesh_resolution(sculpt_width, sculpt_height, sculpt_type, sculpt_detail, requested_sizeS, requested_sizeT); | ||
2202 | 2208 | ||
2203 | mPathp->generate(mParams.getPathParams(), mDetail, 0, TRUE, requested_sizeS); | 2209 | mPathp->generate(mParams.getPathParams(), sculpt_detail, 0, TRUE, requested_sizeS); |
2204 | mProfilep->generate(mParams.getProfileParams(), mPathp->isOpen(), mDetail, 0, TRUE, requested_sizeT); | 2210 | mProfilep->generate(mParams.getProfileParams(), mPathp->isOpen(), sculpt_detail, 0, TRUE, requested_sizeT); |
2205 | 2211 | ||
2206 | S32 sizeS = mPathp->mPath.size(); // we requested a specific size, now see what we really got | 2212 | S32 sizeS = mPathp->mPath.size(); // we requested a specific size, now see what we really got |
2207 | S32 sizeT = mProfilep->mProfile.size(); // we requested a specific size, now see what we really got | 2213 | S32 sizeT = mProfilep->mProfile.size(); // we requested a specific size, now see what we really got |