diff options
author | Dave Parks <davep@lindenlab.com> | 2011-02-01 02:33:14 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-02-01 02:33:14 -0600 |
commit | 1a51db5b53b3783b002bfa870fa45244df8fafdc (patch) | |
tree | 0b052aefcaa4d503d1b94e694e8f63bf63dfec50 /indra/newview/llvovolume.cpp | |
parent | f0be01bda92553a3e9e671c26c2905b47cacb0b5 (diff) |
SH-641 Cosmetic fix -- keep showing last rendered mesh LoD if requested LoD is unavailable.
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rw-r--r-- | indra/newview/llvovolume.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index 3dc82f5368..b296d21b2b 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -936,6 +936,7 @@ BOOL LLVOVolume::setVolume(const LLVolumeParams ¶ms_in, const S32 detail, bo {
LLVolumeParams volume_params = params_in;
+ S32 last_lod = mVolumep.notNull() ? LLVolumeLODGroup::getVolumeDetailFromScale(mVolumep->getDetail()) : -1;
S32 lod = mLOD;
BOOL is404 = FALSE;
@@ -1014,7 +1015,7 @@ BOOL LLVOVolume::setVolume(const LLVolumeParams ¶ms_in, const S32 detail, bo {
//load request not yet issued, request pipeline load this mesh
LLUUID asset_id = volume_params.getSculptID();
- S32 available_lod = gMeshRepo.loadMesh(this, volume_params, lod);
+ S32 available_lod = gMeshRepo.loadMesh(this, volume_params, lod, last_lod);
if (available_lod != lod)
{
LLPrimitive::setVolume(volume_params, available_lod);
|