diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llvovolume.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linden/indra/newview/llvovolume.cpp b/linden/indra/newview/llvovolume.cpp index 6867cac..70037d3 100644 --- a/linden/indra/newview/llvovolume.cpp +++ b/linden/indra/newview/llvovolume.cpp | |||
@@ -723,6 +723,7 @@ void LLVOVolume::sculpt() | |||
723 | 723 | ||
724 | 724 | ||
725 | S32 current_discard = getVolume()->getSculptLevel(); | 725 | S32 current_discard = getVolume()->getSculptLevel(); |
726 | llassert_always(current_discard >= -2 && current_discard <= max_discard); | ||
726 | if (current_discard == discard_level) // no work to do here | 727 | if (current_discard == discard_level) // no work to do here |
727 | return; | 728 | return; |
728 | 729 | ||
@@ -756,7 +757,7 @@ BOOL LLVOVolume::calcLOD() | |||
756 | 757 | ||
757 | S32 cur_detail = 0; | 758 | S32 cur_detail = 0; |
758 | 759 | ||
759 | F32 radius = mVolumep->mLODScaleBias.scaledVec(getScale()).magVec(); | 760 | F32 radius = getVolume()->mLODScaleBias.scaledVec(getScale()).magVec(); |
760 | F32 distance = mDrawable->mDistanceWRTCamera; | 761 | F32 distance = mDrawable->mDistanceWRTCamera; |
761 | distance *= sDistanceFactor; | 762 | distance *= sDistanceFactor; |
762 | 763 | ||