diff options
author | Callum Prentice <callum@lindenlab.com> | 2023-08-17 15:49:50 -0700 |
---|---|---|
committer | Callum Prentice <callum@lindenlab.com> | 2023-08-17 15:49:50 -0700 |
commit | 10276ee967a5ad860fbf8750ce1012db3c5ae78a (patch) | |
tree | 36f3f7ed4f0a6d78776c1dab604ce8d716a45811 /indra/newview/llfloaterbulkythumbs.cpp | |
parent | dde395d4a15fe8759f6f87e97391b62de47d06ee (diff) |
Small updates to bulky thumbs but mainly, this is about the first version of the Inventory Thumbnail Helper tool - see source file for a link to Confluence page listing how to use it
Diffstat (limited to 'indra/newview/llfloaterbulkythumbs.cpp')
-rw-r--r-- | indra/newview/llfloaterbulkythumbs.cpp | 55 |
1 files changed, 54 insertions, 1 deletions
diff --git a/indra/newview/llfloaterbulkythumbs.cpp b/indra/newview/llfloaterbulkythumbs.cpp index 9ffb71b394..02adf90acf 100644 --- a/indra/newview/llfloaterbulkythumbs.cpp +++ b/indra/newview/llfloaterbulkythumbs.cpp @@ -70,6 +70,10 @@ BOOL LLFloaterBulkyThumbs::postBuild() mWriteThumbnailsBtn->setCommitCallback(boost::bind(&LLFloaterBulkyThumbs::onWriteThumbnails, this)); mWriteThumbnailsBtn->setEnabled(false); + mDisplayThumbnaillessItemsBtn = getChild<LLUICtrl>("display_thumbless_items"); + mDisplayThumbnaillessItemsBtn->setCommitCallback(boost::bind(&LLFloaterBulkyThumbs::onDisplayThumbnaillessItems, this)); + mDisplayThumbnaillessItemsBtn->setEnabled(true); + return true; } @@ -96,6 +100,18 @@ void LLFloaterBulkyThumbs::recordInventoryItemEntry(LLViewerInventoryItem* item) { // dupe - do not save } + + if (item->getThumbnailUUID() == LLUUID::null) + { + mOutputLog->appendText( + STRINGIZE( + "ITEM " << mItemNamesIDs.size() << "> " << + name << + " has no thumbnail" << + //id.asString() << + std::endl + ), false); + } } void LLFloaterBulkyThumbs::onPasteItems() @@ -139,6 +155,13 @@ void LLFloaterBulkyThumbs::onPasteItems() LLInventoryModel::EXCLUDE_TRASH, is_bodypart); + LLIsType is_clothing(LLAssetType::AT_CLOTHING); + gInventory.collectDescendentsIf(cat->getUUID(), + cat_array, + item_array, + LLInventoryModel::EXCLUDE_TRASH, + is_clothing); + for (size_t i = 0; i < item_array.size(); i++) { LLViewerInventoryItem* item = item_array.at(i); @@ -150,7 +173,7 @@ void LLFloaterBulkyThumbs::onPasteItems() if (item) { const LLAssetType::EType item_type = item->getType(); - if (item_type == LLAssetType::AT_OBJECT || item_type == LLAssetType::AT_BODYPART) + if (item_type == LLAssetType::AT_OBJECT || item_type == LLAssetType::AT_BODYPART || item_type == LLAssetType::AT_CLOTHING) { recordInventoryItemEntry(item); } @@ -388,3 +411,33 @@ void LLFloaterBulkyThumbs::onWriteThumbnails() } mOutputLog->setCursorAndScrollToEnd(); } + +void LLFloaterBulkyThumbs::onDisplayThumbnaillessItems() +{ + //std::map<std::string, LLUUID>::iterator item_iter = mItemNamesIDs.begin(); + //size_t index = 1; + + //mOutputLog->appendText("======= Items with no thumbnail =======", false); + + //while (item_iter != mItemNamesIDs.end()) + //{ + // std::string item_name = (*item_iter).first; + + // //mOutputLog->appendText( + // // STRINGIZE( + // // "MATCHING ITEM (" << index++ << "/" << mItemNamesIDs.size() << ") " << item_name << "> " + // // ), false); + + // std::map<std::string, LLUUID>::iterator texture_iter = mTextureNamesIDs.find(item_name); + // if (texture_iter == mTextureNamesIDs.end()) + // { + // mOutputLog->appendText( + // STRINGIZE( + // "MISSING:" << + + // std::endl + // ), false); + + // } + //} +} |