diff --git a/indra/newview/llvocache.cpp b/indra/newview/llvocache.cpp index 26f6987916c2a7abc85ee5f9b60cac6674d7cd8f..2176ec9c9c05e68c6fd65d484babfb99e3e67a19 100755 --- a/indra/newview/llvocache.cpp +++ b/indra/newview/llvocache.cpp @@ -589,14 +589,10 @@ void LLVOCacheEntry::updateParentBoundingInfo(const LLVOCacheEntry* child) //------------------------------------------------------------------- LLVOCacheGroup::~LLVOCacheGroup() { - //for(S32 i = 0; i < LLViewerCamera::NUM_CAMERAS; i++) - //{ - // if(mOcclusionState[i] & ACTIVE_OCCLUSION) - // { - // ((LLVOCachePartition*)mSpatialPartition)->removeOccluder(this); - // break; - // } - //} + if(mOcclusionState[LLViewerCamera::CAMERA_WORLD] & ACTIVE_OCCLUSION) + { + ((LLVOCachePartition*)mSpatialPartition)->removeOccluder(this); + } } //virtual