diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2017-12-13 20:22:38 +0000 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2017-12-13 20:22:38 +0000 |
commit | 9580e610f613b1de6dab5378e94d1fb4b67cbf50 (patch) | |
tree | 939f3858ce21ce857885b921981842575eb87455 /indra/newview/llvoavatar.cpp | |
parent | 49d924ae295190dbce999e5b8e31909c5fc4a22e (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.cpp | 5 |
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) { |