From 9580e610f613b1de6dab5378e94d1fb4b67cbf50 Mon Sep 17 00:00:00 2001 From: "Brad Payne (Vir Linden)" Date: Wed, 13 Dec 2017 20:22:38 +0000 Subject: 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 53db1ffe32..060e93ac9a 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) { -- cgit v1.2.3