From 9580e610f613b1de6dab5378e94d1fb4b67cbf50 Mon Sep 17 00:00:00 2001
From: "Brad Payne (Vir Linden)" <vir@lindenlab.com>
Date: Wed, 13 Dec 2017 20:22:38 +0000
Subject: [PATCH] MAINT-8088 - avoid excess object inventory queries when
 Animation Info display is enabled

---
 indra/newview/llvoavatar.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index 53db1ffe32a..060e93ac9aa 100644
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -3494,7 +3494,10 @@ void LLVOAvatar::updateDebugText()
                         LLVOVolume *volp = control_av->mRootVolp;
                         if (volp)
                         {
-                            volp->requestInventory(); 
+                            if (volp->getInventorySerial()<=0)
+                            {
+                                volp->requestInventory(); 
+                            }
                             LLViewerInventoryItem* item = volp->getInventoryItemByAsset(motionp->getID());
                             if (item)
                             {
-- 
GitLab