SL-13286 FIXED Turning off the DebugObjectLODs debug setting doesn't clear text

meow-7.2.2
Mnikolenko Productengine 2020-05-22 18:53:48 +03:00
parent ae24afec8f
commit 7faec04ea6
2 changed files with 13 additions and 1 deletions

View File

@ -235,7 +235,8 @@ LLVOVolume::LLVOVolume(const LLUUID &id, const LLPCode pcode, LLViewerRegion *re
mLastFetchedMediaVersion = -1;
memset(&mIndexInTex, 0, sizeof(S32) * LLRender::NUM_VOLUME_TEXTURE_CHANNELS);
mMDCImplCount = 0;
mLastRiggingInfoLOD = -1;
mLastRiggingInfoLOD = -1;
mResetDebugText = false;
}
LLVOVolume::~LLVOVolume()
@ -1388,6 +1389,15 @@ BOOL LLVOVolume::calcLOD()
{
std::string debug_object_text = get_debug_object_lod_text(this);
setDebugText(debug_object_text);
mResetDebugText = true;
}
}
else
{
if (mResetDebugText)
{
restoreHudText();
mResetDebugText = false;
}
}

View File

@ -424,6 +424,8 @@ private:
S32 mIndexInTex[LLRender::NUM_VOLUME_TEXTURE_CHANNELS];
S32 mMDCImplCount;
bool mResetDebugText;
LLPointer<LLRiggedVolume> mRiggedVolume;
// statics