summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerinventory.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2013-04-29 14:24:05 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2013-04-29 14:24:05 -0400
commite4c96827d237a489873ce8453640d3a13f83d01a (patch)
tree91912f7c54cbc3c27df40d73f06caa3a39d17e5d /indra/newview/llviewerinventory.cpp
parentc198d9db81073d4208de9cefacd0c6ba1ee9ff1f (diff)
SH-4144 FIX - Debug setting now disables use of AISv3 by default. This is just a workaround for the problem of aditi advertising the cap when it isn't really present. Once we have aditi in a consistent state we should remove the setting, or at least default it to true.
Diffstat (limited to 'indra/newview/llviewerinventory.cpp')
-rwxr-xr-xindra/newview/llviewerinventory.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/indra/newview/llviewerinventory.cpp b/indra/newview/llviewerinventory.cpp
index 3eab85b8b3..d45512df9c 100755
--- a/indra/newview/llviewerinventory.cpp
+++ b/indra/newview/llviewerinventory.cpp
@@ -627,6 +627,10 @@ S32 LLViewerInventoryCategory::getVersion() const
void LLViewerInventoryCategory::setVersion(S32 version)
{
+ if (mPreferredType == LLFolderType::FT_CURRENT_OUTFIT)
+ {
+ llinfos << "cof version change " << mVersion << " => " << version << llendl;
+ }
mVersion = version;
}
@@ -1189,7 +1193,7 @@ void remove_inventory_item(
if(obj)
{
std::string cap;
- if (gAgent.getRegion())
+ if (gAgent.getRegion() && gSavedSettings.getBOOL("UseAISv3Inventory"))
{
cap = gAgent.getRegion()->getCapability("InventoryAPIv3");
}
@@ -1267,7 +1271,7 @@ void remove_inventory_category(
}
std::string cap;
- if (gAgent.getRegion())
+ if (gAgent.getRegion() && gSavedSettings.getBOOL("UseAISv3Inventory"))
{
cap = gAgent.getRegion()->getCapability("InventoryAPIv3");
}
@@ -1409,7 +1413,7 @@ void purge_descendents_of(const LLUUID& id, LLPointer<LLInventoryCallback> cb)
else
{
std::string cap;
- if (gAgent.getRegion())
+ if (gAgent.getRegion() && gSavedSettings.getBOOL("UseAISv3Inventory"))
{
cap = gAgent.getRegion()->getCapability("InventoryAPIv3");
}