From 462ae23c7c8a85948f7e16f64f5f6b11376ade2e Mon Sep 17 00:00:00 2001 From: Rye Mutt <rye@alchemyviewer.org> Date: Wed, 23 Mar 2022 04:41:03 -0400 Subject: [PATCH] Fix opensim appearance fail --- indra/newview/llvoavatar.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index dedfe0f5798..f63b9e048a3 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -9476,18 +9476,16 @@ void LLVOAvatar::processAvatarAppearance( LLMessageSystem* mesgsys ) // we must prevent rolling this one backwards backwards or processing // stale versions. - S32 aisCOFVersion(LLAppearanceMgr::instance().getCOFVersion()); - - LL_DEBUGS("Avatar") << "handling self appearance message #" << thisAppearanceVersion << + LL_DEBUGS("Avatar") << "handling self appearance message #" << thisAppearanceVersion << " (highest seen #" << mLastUpdateReceivedCOFVersion << - ") (AISCOF=#" << aisCOFVersion << ")" << LL_ENDL; + ") (AISCOF=#" << LLAppearanceMgr::instance().getCOFVersion() << ")" << LL_ENDL; if (mFirstTEMessageReceived && (appearance_version == 0)) { return; } - if (mLastUpdateReceivedCOFVersion >= thisAppearanceVersion) + if ((appearance_version > 0) && mLastUpdateReceivedCOFVersion >= thisAppearanceVersion) { LL_WARNS("Avatar") << "Stale appearance received #" << thisAppearanceVersion << " attempt to roll back from #" << mLastUpdateReceivedCOFVersion << -- GitLab