summaryrefslogtreecommitdiff
path: root/indra/newview/llvoavatar.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2017-12-13 20:22:38 +0000
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2017-12-13 20:22:38 +0000
commit9580e610f613b1de6dab5378e94d1fb4b67cbf50 (patch)
tree939f3858ce21ce857885b921981842575eb87455 /indra/newview/llvoavatar.cpp
parent49d924ae295190dbce999e5b8e31909c5fc4a22e (diff)
MAINT-8088 - avoid excess object inventory queries when Animation Info display is enabled
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
-rw-r--r--indra/newview/llvoavatar.cpp5
1 files changed, 4 insertions, 1 deletions
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)
{