From d85bc7de7f03a4629f0108c076cf3242466a8a3f Mon Sep 17 00:00:00 2001
From: andreykproductengine <akleshchev@productengine.com>
Date: Tue, 16 Aug 2016 17:48:52 +0300
Subject: [PATCH] MAINT-6637 DebugAvatarAppearanceMessage incorrectly reports
 all avatars received COF version as -1

---
 doc/contributions.txt        |  1 +
 indra/newview/llvoavatar.cpp | 17 +++++++----------
 2 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/doc/contributions.txt b/doc/contributions.txt
index d968e802501..b3d1c2432df 100755
--- a/doc/contributions.txt
+++ b/doc/contributions.txt
@@ -199,6 +199,7 @@ Ansariel Hiller
 	STORM-2133
 	MAINT-6511
 	MAINT-6612
+	MAINT-6637
 Aralara Rajal
 Arare Chantilly
 	CHUIBUG-191
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index aebc0665074..f79249d6fa4 100644
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -7392,16 +7392,13 @@ void LLVOAvatar::processAvatarAppearance( LLMessageSystem* mesgsys )
 	// No backsies zone - if we get here, the message should be valid and usable, will be processed.
     LL_INFOS("Avatar") << "Processing appearance message version " << thisAppearanceVersion << LL_ENDL;
 
-    if (isSelf())
-    {
-        // Note:
-        // locally the COF is maintained via LLInventoryModel::accountForUpdate
-        // which is called from various places.  This should match the simhost's 
-        // idea of what the COF version is.  AIS however maintains its own version
-        // of the COF that should be considered canonical. 
-        mLastUpdateReceivedCOFVersion = thisAppearanceVersion;
-    }
-		
+    // Note:
+    // locally the COF is maintained via LLInventoryModel::accountForUpdate
+    // which is called from various places.  This should match the simhost's 
+    // idea of what the COF version is.  AIS however maintains its own version
+    // of the COF that should be considered canonical. 
+    mLastUpdateReceivedCOFVersion = thisAppearanceVersion;
+
     if (applyParsedTEMessage(contents.mTEContents) > 0 && isChanged(TEXTURE))
     {
         updateVisualComplexity();
-- 
GitLab