Send the currently selected object list in the custom menu options request so that options can be created that operate on items.

This commit is contained in:
Melanie
2013-02-24 15:47:46 +01:00
committed by Lirusaito
parent 2ad9476961
commit 3036f74b69

View File

@@ -9805,5 +9805,18 @@ void custom_selected(void* user_data)
LLSD menuAction = LLSD::emptyMap();
menuAction["action"] = LLSD(custom->getName());
LLSD selection = LLSD::emptyArray();
for (LLObjectSelection::iterator iter = LLSelectMgr::getInstance()->getSelection()->begin();
iter != LLSelectMgr::getInstance()->getSelection()->end(); iter++)
{
LLSelectNode* selectNode = *iter;
LLViewerObject*cur = selectNode->getObject();
selection.append(LLSD((S32)cur->getLocalID()));
}
menuAction["selection"] = selection;
LLHTTPClient::post(url, menuAction, new LLHTTPClient::ResponderIgnore);
}