aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
authorMcCabe Maxsted2011-07-08 13:29:53 -0700
committerMcCabe Maxsted2011-07-08 14:00:06 -0700
commit534767ef00ccac5a5c5edd60f93df25648c4716a (patch)
tree085ee4e9e9441eab06e89d33036e9432ce2cc788 /linden/indra
parentA little cleanup for cache clearing (diff)
downloadmeta-impy-534767ef00ccac5a5c5edd60f93df25648c4716a.zip
meta-impy-534767ef00ccac5a5c5edd60f93df25648c4716a.tar.gz
meta-impy-534767ef00ccac5a5c5edd60f93df25648c4716a.tar.bz2
meta-impy-534767ef00ccac5a5c5edd60f93df25648c4716a.tar.xz
Only check if an object is above SculptSAThresh if it's an actual sculptie
Diffstat (limited to 'linden/indra')
-rw-r--r--linden/indra/newview/app_settings/logcontrol.xml1
-rw-r--r--linden/indra/newview/llvovolume.cpp14
2 files changed, 11 insertions, 4 deletions
diff --git a/linden/indra/newview/app_settings/logcontrol.xml b/linden/indra/newview/app_settings/logcontrol.xml
index 50f8ba5..def847b 100644
--- a/linden/indra/newview/app_settings/logcontrol.xml
+++ b/linden/indra/newview/app_settings/logcontrol.xml
@@ -87,6 +87,7 @@
87 <!--<string>VOAvatar</string>--> 87 <!--<string>VOAvatar</string>-->
88 <!--<string>View</string>--> 88 <!--<string>View</string>-->
89 <!--<string>ViewerImages</string>--> 89 <!--<string>ViewerImages</string>-->
90 <!--<string>Volume</string>-->
90 <!--<string>TextureCache</string>--> 91 <!--<string>TextureCache</string>-->
91 <!--<string>Throttle</string>--> 92 <!--<string>Throttle</string>-->
92 <!--<string>Voice</string>--> 93 <!--<string>Voice</string>-->
diff --git a/linden/indra/newview/llvovolume.cpp b/linden/indra/newview/llvovolume.cpp
index 8d5bfb4..77201da 100644
--- a/linden/indra/newview/llvovolume.cpp
+++ b/linden/indra/newview/llvovolume.cpp
@@ -2308,16 +2308,22 @@ void LLVolumeGeometryManager::rebuildGeom(LLSpatialGroup* group)
2308 2308
2309 LLVOVolume* vobj = drawablep->getVOVolume(); 2309 LLVOVolume* vobj = drawablep->getVOVolume();
2310 2310
2311 if (vobj->mSculptSurfaceArea > sSculptSAThresh) 2311 llassert_always(vobj);
2312
2313 if (vobj->isSculpted() && vobj->mSculptSurfaceArea > sSculptSAThresh)
2312 { 2314 {
2313 LLPipeline::sSculptSurfaceAreaFrame += vobj->mSculptSurfaceArea; 2315 LLPipeline::sSculptSurfaceAreaFrame += vobj->mSculptSurfaceArea;
2314 if(LLPipeline::sSculptSurfaceAreaFrame > sSculptSAMax) 2316 if (LLPipeline::sSculptSurfaceAreaFrame > sSculptSAMax)
2315 { 2317 {
2316 continue; 2318 LL_DEBUGS("Volume") << "Sculptie ("
2319 << vobj->getID() << ") above RenderSculptSAMax ("
2320 << sSculptSAMax
2321 << ")! Turning invisible!"
2322 << LL_ENDL;
2323 continue;
2317 } 2324 }
2318 } 2325 }
2319 2326
2320 llassert_always(vobj);
2321 vobj->updateTextureVirtualSize(); 2327 vobj->updateTextureVirtualSize();
2322 vobj->preRebuild(); 2328 vobj->preRebuild();
2323 2329