aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvovolume.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2009-02-13 03:10:11 -0600
committerJacek Antonelli2009-02-13 03:10:37 -0600
commitae87a35efc761f1a317325c5286a0946992fc84b (patch)
tree526e23e01d3fc2bc65272f00798de5fee1d0350f /linden/indra/newview/llvovolume.cpp
parentSecond Life viewer sources 1.22.8-RC (diff)
downloadmeta-impy-ae87a35efc761f1a317325c5286a0946992fc84b.zip
meta-impy-ae87a35efc761f1a317325c5286a0946992fc84b.tar.gz
meta-impy-ae87a35efc761f1a317325c5286a0946992fc84b.tar.bz2
meta-impy-ae87a35efc761f1a317325c5286a0946992fc84b.tar.xz
Second Life viewer sources 1.22.9-RC
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llvovolume.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/linden/indra/newview/llvovolume.cpp b/linden/indra/newview/llvovolume.cpp
index 6baff85..ad44356 100644
--- a/linden/indra/newview/llvovolume.cpp
+++ b/linden/indra/newview/llvovolume.cpp
@@ -517,7 +517,7 @@ void LLVOVolume::updateTextures()
517 if (mSculptTexture.notNull()) 517 if (mSculptTexture.notNull())
518 { 518 {
519 S32 lod = llmin(mLOD, 3); 519 S32 lod = llmin(mLOD, 3);
520 F32 lodf = ((F32)(4-lod)/4.f); // 0 -> 1.0, 3 -> .25 520 F32 lodf = ((F32)(lod + 1.0f)/4.f);
521 F32 tex_size = lodf * MAX_SCULPT_REZ; 521 F32 tex_size = lodf * MAX_SCULPT_REZ;
522 mSculptTexture->addTextureStats(2.f * tex_size * tex_size); 522 mSculptTexture->addTextureStats(2.f * tex_size * tex_size);
523 mSculptTexture->setBoostLevel(llmax((S32)mSculptTexture->getBoostLevel(), 523 mSculptTexture->setBoostLevel(llmax((S32)mSculptTexture->getBoostLevel(),
@@ -762,10 +762,10 @@ void LLVOVolume::sculpt()
762 // corrupted volume... don't update the sculpty 762 // corrupted volume... don't update the sculpty
763 return; 763 return;
764 } 764 }
765 else if (current_discard > max_discard) 765 else if (current_discard > MAX_DISCARD_LEVEL)
766 { 766 {
767 llwarns << "WARNING!!: Current discard of sculpty at " << current_discard 767 llwarns << "WARNING!!: Current discard of sculpty at " << current_discard
768 << " is more than than allowed max of " << max_discard << llendl; 768 << " is more than than allowed max of " << MAX_DISCARD_LEVEL << llendl;
769 769
770 // corrupted volume... don't update the sculpty 770 // corrupted volume... don't update the sculpty
771 return; 771 return;
@@ -2006,10 +2006,10 @@ BOOL LLVOVolume::lineSegmentIntersect(const LLVector3& start, const LLVector3& e
2006 if (face_hit >= 0 && mDrawable->getNumFaces() > face_hit) 2006 if (face_hit >= 0 && mDrawable->getNumFaces() > face_hit)
2007 { 2007 {
2008 LLFace* face = mDrawable->getFace(face_hit); 2008 LLFace* face = mDrawable->getFace(face_hit);
2009 v_end = p; 2009
2010
2011 if (pick_transparent || !face->getTexture() || face->getTexture()->getMask(face->surfaceToTexture(tc, p, n))) 2010 if (pick_transparent || !face->getTexture() || face->getTexture()->getMask(face->surfaceToTexture(tc, p, n)))
2012 { 2011 {
2012 v_end = p;
2013 if (face_hitp != NULL) 2013 if (face_hitp != NULL)
2014 { 2014 {
2015 *face_hitp = face_hit; 2015 *face_hitp = face_hit;