aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvovolume.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2011-09-08 20:50:39 -0700
committerMcCabe Maxsted2011-09-08 20:50:39 -0700
commit0b707d43d1d04808e3354b9bf1dc35d380c286be (patch)
tree23ab929deccaab3fd6820227035a36d89bbb17de /linden/indra/newview/llvovolume.cpp
parentFixed snapshot Capture combo (diff)
downloadmeta-impy-0b707d43d1d04808e3354b9bf1dc35d380c286be.zip
meta-impy-0b707d43d1d04808e3354b9bf1dc35d380c286be.tar.gz
meta-impy-0b707d43d1d04808e3354b9bf1dc35d380c286be.tar.bz2
meta-impy-0b707d43d1d04808e3354b9bf1dc35d380c286be.tar.xz
Backout of the sculptie derender patch ported from FireStorm
This also reverts 14f4622c and 534767ef
Diffstat (limited to 'linden/indra/newview/llvovolume.cpp')
-rw-r--r--linden/indra/newview/llvovolume.cpp19
1 files changed, 1 insertions, 18 deletions
diff --git a/linden/indra/newview/llvovolume.cpp b/linden/indra/newview/llvovolume.cpp
index b422c51..d580d61 100644
--- a/linden/indra/newview/llvovolume.cpp
+++ b/linden/indra/newview/llvovolume.cpp
@@ -79,9 +79,6 @@ F32 LLVOVolume::sLODFactor = 1.f;
79F32 LLVOVolume::sLODSlopDistanceFactor = 0.5f; //Changing this to zero, effectively disables the LOD transition slop 79F32 LLVOVolume::sLODSlopDistanceFactor = 0.5f; //Changing this to zero, effectively disables the LOD transition slop
80F32 LLVOVolume::sDistanceFactor = 1.0f; 80F32 LLVOVolume::sDistanceFactor = 1.0f;
81S32 LLVOVolume::sNumLODChanges = 0; 81S32 LLVOVolume::sNumLODChanges = 0;
82F32 LLVOVolume::sSculptSAThresh = 1750.f;
83F32 LLVOVolume::sSculptSAMax = 50000.f;
84
85 82
86LLVOVolume::LLVOVolume(const LLUUID &id, const LLPCode pcode, LLViewerRegion *regionp) 83LLVOVolume::LLVOVolume(const LLUUID &id, const LLPCode pcode, LLViewerRegion *regionp)
87 : LLViewerObject(id, pcode, regionp), 84 : LLViewerObject(id, pcode, regionp),
@@ -709,7 +706,7 @@ BOOL LLVOVolume::setVolume(const LLVolumeParams &volume_params, const S32 detail
709 } 706 }
710 else 707 else
711 { 708 {
712 mSculptSurfaceArea = 0.0; 709 mSculptSurfaceArea = 0.f;
713 } 710 }
714 711
715 return TRUE; 712 return TRUE;
@@ -2322,20 +2319,6 @@ void LLVolumeGeometryManager::rebuildGeom(LLSpatialGroup* group)
2322 LLVOVolume* vobj = drawablep->getVOVolume(); 2319 LLVOVolume* vobj = drawablep->getVOVolume();
2323 2320
2324 llassert_always(vobj); 2321 llassert_always(vobj);
2325
2326 if (vobj->isSculpted() && vobj->mSculptSurfaceArea > LLVOVolume::sSculptSAThresh)
2327 {
2328 LLPipeline::sSculptSurfaceAreaFrame += vobj->mSculptSurfaceArea;
2329 if (LLPipeline::sSculptSurfaceAreaFrame > LLVOVolume::sSculptSAMax)
2330 {
2331 LL_DEBUGS("Volume") << "Sculptie ("
2332 << vobj->getID() << ") above RenderSculptSAMax ("
2333 << LLVOVolume::sSculptSAMax
2334 << ")! Turning invisible!"
2335 << LL_ENDL;
2336 continue;
2337 }
2338 }
2339 2322
2340 vobj->updateTextureVirtualSize(); 2323 vobj->updateTextureVirtualSize();
2341 vobj->preRebuild(); 2324 vobj->preRebuild();