A whole bunch of fucking crap that didn't work while trying to restore the Pretend Inventory folder, fix for (temporary) not showing up near temp uploads. Temporary uploads still broken a bit -- Always show up at the very bottom of the texture folder, but goddamnit they work shut up. >:||
This commit is contained in:
@@ -776,6 +776,12 @@ BOOL LLFolderViewItem::handleHover( S32 x, S32 y, MASK mask )
|
||||
{
|
||||
src = LLToolDragAndDrop::SOURCE_LIBRARY;
|
||||
}
|
||||
// <edit>
|
||||
else if(mListener && gInventory.isObjectDescendentOf(mListener->getUUID(), gLocalInventoryRoot))
|
||||
{ // Note: this is only ok if all future pretend folders are subcategories of Pretend Inventory
|
||||
src = LLToolDragAndDrop::SOURCE_LIBRARY;
|
||||
}
|
||||
// </edit>
|
||||
|
||||
can_drag = root->startDrag(src);
|
||||
if (can_drag)
|
||||
|
||||
@@ -472,6 +472,14 @@ class LLDoCreate : public inventory_panel_listener_t
|
||||
LLInventoryModel* model = mPtr->getModel();
|
||||
if(!model) return false;
|
||||
std::string type = userdata.asString();
|
||||
// <edit>
|
||||
if(type == "pretend")
|
||||
{
|
||||
LLFloaterNewLocalInventory* floater = new LLFloaterNewLocalInventory();
|
||||
floater->center();
|
||||
}
|
||||
else
|
||||
// </edit>
|
||||
do_create(model, mPtr, type, LLFolderBridge::sSelf);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1114,12 +1114,11 @@ std::string LLItemBridge::getLabelSuffix() const
|
||||
LLPermissions perm = item->getPermissions();
|
||||
//
|
||||
if(perm.getOwner() == gAgent.getID())
|
||||
|
||||
{
|
||||
BOOL copy = perm.allowCopyBy(gAgent.getID());
|
||||
BOOL mod = perm.allowModifyBy(gAgent.getID());
|
||||
BOOL xfer = perm.allowOperationBy(PERM_TRANSFER,
|
||||
gAgent.getID());
|
||||
BOOL xfer = perm.allowOperationBy(PERM_TRANSFER, gAgent.getID());
|
||||
|
||||
// *TODO: Translate
|
||||
const char* EMPTY = "";
|
||||
const char* NO_COPY = " (no copy)";
|
||||
@@ -1140,6 +1139,10 @@ std::string LLItemBridge::getLabelSuffix() const
|
||||
else stempo = EMPTY;
|
||||
suffix = llformat("%s%s%s%s",scopy,smod,sxfer,stempo);
|
||||
}
|
||||
else if (!perm.isOwned())
|
||||
{
|
||||
suffix = " (temporary)";
|
||||
}
|
||||
}
|
||||
return suffix;
|
||||
}
|
||||
|
||||
@@ -2145,6 +2145,19 @@ bool idle_startup()
|
||||
}
|
||||
}
|
||||
|
||||
// <edit> testing adding a local inventory folder...
|
||||
LLViewerInventoryCategory* test_cat = new LLViewerInventoryCategory(gAgent.getID());
|
||||
test_cat->rename(std::string("Pretend Inventory"));
|
||||
LLUUID test_cat_id;
|
||||
test_cat_id.generate();
|
||||
test_cat->setUUID(test_cat_id);
|
||||
gLocalInventoryRoot = test_cat_id;
|
||||
test_cat->setParent(LLUUID::null);
|
||||
test_cat->setPreferredType(LLAssetType::AT_NONE);
|
||||
|
||||
gInventory.addCategory(test_cat);
|
||||
// </edit>
|
||||
|
||||
// OGPX login-flags : we don't currently get those passed back (there is a gendered hack in the code elsewhere)
|
||||
// unsure if OGPX should be getting all these.
|
||||
if (LLUserAuth::getInstance()->mResult["login-flags"].isArray())
|
||||
|
||||
Reference in New Issue
Block a user