summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2012-07-12 11:09:27 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2012-07-12 11:09:27 -0400
commit6681b47d4f75433ef409ca3eaa0ea1e10161cc80 (patch)
tree5dcadab4c61b60f7a306faf14161f4d5551edd5e /indra
parent033c84dc9452f4b38cdf87446203241c4554d126 (diff)
SH-3267 WIP
Diffstat (limited to 'indra')
-rwxr-xr-xindra/newview/llappearancemgr.cpp13
-rwxr-xr-xindra/newview/llappearancemgr.h1
2 files changed, 14 insertions, 0 deletions
diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp
index 480a8e0d73..04c4220afd 100755
--- a/indra/newview/llappearancemgr.cpp
+++ b/indra/newview/llappearancemgr.cpp
@@ -925,6 +925,18 @@ const LLUUID LLAppearanceMgr::getCOF() const
return gInventory.findCategoryUUIDForType(LLFolderType::FT_CURRENT_OUTFIT);
}
+S32 LLAppearanceMgr::getCOFVersion() const
+{
+ LLViewerInventoryCategory *cof = gInventory.getCategory(getCOF());
+ if (cof)
+ {
+ return cof->getVersion();
+ }
+ else
+ {
+ return LLViewerInventoryCategory::VERSION_UNKNOWN;
+ }
+}
const LLViewerInventoryItem* LLAppearanceMgr::getBaseOutfitLink()
{
@@ -2611,6 +2623,7 @@ void LLAppearanceMgr::requestServerAppearanceUpdate()
if (!url.empty())
{
LLSD body;
+ body["cof_version"] = getCOFVersion();
LLHTTPClient::post(url, body, new RequestAgentUpdateAppearanceResponder);
}
else
diff --git a/indra/newview/llappearancemgr.h b/indra/newview/llappearancemgr.h
index 46457f1dce..954820c154 100755
--- a/indra/newview/llappearancemgr.h
+++ b/indra/newview/llappearancemgr.h
@@ -93,6 +93,7 @@ public:
// Find the Current Outfit folder.
const LLUUID getCOF() const;
+ S32 getCOFVersion() const;
// Finds the folder link to the currently worn outfit
const LLViewerInventoryItem *getBaseOutfitLink();