diff options
Diffstat (limited to 'linden/indra/newview/llvovolume.cpp')
-rw-r--r-- | linden/indra/newview/llvovolume.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linden/indra/newview/llvovolume.cpp b/linden/indra/newview/llvovolume.cpp index 73ff860..632bca2 100644 --- a/linden/indra/newview/llvovolume.cpp +++ b/linden/indra/newview/llvovolume.cpp | |||
@@ -527,8 +527,8 @@ void LLVOVolume::updateTextureVirtualSize() | |||
527 | } | 527 | } |
528 | } | 528 | } |
529 | 529 | ||
530 | S32 texture_discard = mSculptTexture->getCachedRawImageLevel(); //try to match the texture | 530 | S32 texture_discard = mSculptTexture->getDiscardLevel(); //try to match the texture |
531 | S32 current_discard = mSculptLevel; | 531 | S32 current_discard = getVolume() ? getVolume()->getSculptLevel() : -2 ; |
532 | 532 | ||
533 | if (texture_discard >= 0 && //texture has some data available | 533 | if (texture_discard >= 0 && //texture has some data available |
534 | (texture_discard < current_discard || //texture has more data than last rebuild | 534 | (texture_discard < current_discard || //texture has more data than last rebuild |
@@ -711,7 +711,7 @@ void LLVOVolume::sculpt() | |||
711 | S8 sculpt_components = 0; | 711 | S8 sculpt_components = 0; |
712 | const U8* sculpt_data = NULL; | 712 | const U8* sculpt_data = NULL; |
713 | 713 | ||
714 | S32 discard_level = mSculptTexture->getCachedRawImageLevel() ; | 714 | S32 discard_level = mSculptTexture->getDiscardLevel(); |
715 | LLImageRaw* raw_image = mSculptTexture->getCachedRawImage() ; | 715 | LLImageRaw* raw_image = mSculptTexture->getCachedRawImage() ; |
716 | 716 | ||
717 | S32 max_discard = mSculptTexture->getMaxDiscardLevel(); | 717 | S32 max_discard = mSculptTexture->getMaxDiscardLevel(); |