Serverside outfits, part tow - final - call a CAP if outfit is changed successfully

This commit is contained in:
Melanie
2013-04-23 04:52:51 +02:00
parent 6addfdfd93
commit 274c51c536
2 changed files with 14 additions and 0 deletions

View File

@@ -27,6 +27,8 @@
#include "llviewergenericmessage.h"
#include "llviewerinventory.h"
#include "llappearancemgr.h"
#include "llviewerregion.h"
#include "llagent.h"
GenericHandlers *gGenericHandlers = NULL;
@@ -49,6 +51,17 @@ public:
LLAppearanceMgr::instance().wearInventoryCategory(cat, FALSE, FALSE);
success = true;
}
LLViewerRegion* regionp = gAgent.getRegion();
if (!regionp) return true;
std::string url = regionp->getCapability("WearablesLoaded");
if (url.empty()) return true;
LLSD data = LLSD(success);
LLHTTPClient::post(url, data, new LLHTTPClient::ResponderIgnore);
return true;
}
};

View File

@@ -1701,6 +1701,7 @@ void LLViewerRegionImpl::buildCapabilityNames(LLSD& capabilityNames)
capabilityNames.append("ViewerMetrics");
capabilityNames.append("ViewerStartAuction");
capabilityNames.append("ViewerStats");
capabilityNames.append("WearablesLoaded");
// Please add new capabilities alphabetically to reduce
// merge conflicts.