For DEV-34652: OUTFITS (Operations) : Wear folders via drag and drop - handle untyped folder dragged to outfit
--HG-- branch : avatar-pipelinemeow-7.2.2
parent
7202227953
commit
6474dbd469
|
|
@ -465,7 +465,7 @@ void LLAppearanceManager::filterWearableItems(
|
|||
// Create links to all listed items.
|
||||
void LLAppearanceManager::linkAll(const LLUUID& category,
|
||||
LLInventoryModel::item_array_t& items,
|
||||
LLPointer<LLInventoryCallback> cb)
|
||||
LLPointer<LLInventoryCallback> cb)
|
||||
{
|
||||
for (S32 i=0; i<items.count(); i++)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -82,6 +82,11 @@ public:
|
|||
void setAttachmentInvLinkEnable(bool val);
|
||||
void linkRegisteredAttachments();
|
||||
|
||||
// utility function for bulk linking.
|
||||
void linkAll(const LLUUID& category,
|
||||
LLInventoryModel::item_array_t& items,
|
||||
LLPointer<LLInventoryCallback> cb);
|
||||
|
||||
protected:
|
||||
LLAppearanceManager();
|
||||
~LLAppearanceManager();
|
||||
|
|
@ -89,9 +94,6 @@ protected:
|
|||
private:
|
||||
|
||||
void filterWearableItems(LLInventoryModel::item_array_t& items, S32 max_per_type);
|
||||
void linkAll(const LLUUID& category,
|
||||
LLInventoryModel::item_array_t& items,
|
||||
LLPointer<LLInventoryCallback> cb);
|
||||
|
||||
void getDescendentsOfAssetType(const LLUUID& category,
|
||||
LLInventoryModel::item_array_t& items,
|
||||
|
|
|
|||
|
|
@ -1680,6 +1680,14 @@ BOOL LLFolderBridge::dragCategoryIntoFolder(LLInventoryCategory* inv_cat,
|
|||
BOOL append = true;
|
||||
LLAppearanceManager::instance().wearInventoryCategory(inv_cat, false, append);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Recursively create links in target outfit.
|
||||
LLInventoryModel::cat_array_t cats;
|
||||
LLInventoryModel::item_array_t items;
|
||||
gInventory.collectDescendents(inv_cat->getUUID(), cats, items, LLInventoryModel::EXCLUDE_TRASH);
|
||||
LLAppearanceManager::instance().linkAll(mUUID,items,NULL);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue