diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml
index 7a9401de72..d06e7bd7b2 100644
--- a/indra/newview/app_settings/settings.xml
+++ b/indra/newview/app_settings/settings.xml
@@ -23138,6 +23138,17 @@ Change of this parameter will affect the layout of buttons in notification toast
Value
0
+ FSUseAis3Api
+
diff --git a/indra/newview/llaisapi.cpp b/indra/newview/llaisapi.cpp
index 9d887a61f1..c86756a175 100755
--- a/indra/newview/llaisapi.cpp
+++ b/indra/newview/llaisapi.cpp
@@ -123,7 +123,10 @@ void AISCommand::httpFailure()
//static
bool AISCommand::isAPIAvailable()
{
- if (gAgent.getRegion())
+ // Add AIS3 debug setting
+ //if (gAgent.getRegion())
+ if (gAgent.getRegion() && gSavedSettings.getBOOL("FSUseAis3Api"))
+ //
{
return gAgent.getRegion()->isCapabilityAvailable("InventoryAPIv3");
}
@@ -133,7 +136,10 @@ bool AISCommand::isAPIAvailable()
//static
bool AISCommand::getInvCap(std::string& cap)
{
- if (gAgent.getRegion())
+ // Add AIS3 debug setting
+ //if (gAgent.getRegion())
+ if (gAgent.getRegion() && gSavedSettings.getBOOL("FSUseAis3Api"))
+ //
{
cap = gAgent.getRegion()->getCapability("InventoryAPIv3");
}
@@ -147,7 +153,10 @@ bool AISCommand::getInvCap(std::string& cap)
//static
bool AISCommand::getLibCap(std::string& cap)
{
- if (gAgent.getRegion())
+ // Add AIS3 debug setting
+ //if (gAgent.getRegion())
+ if (gAgent.getRegion() && gSavedSettings.getBOOL("FSUseAis3Api"))
+ //
{
cap = gAgent.getRegion()->getCapability("LibraryAPIv3");
}