COMMIT STORM:
Fixes for Temp uploads so they show up as they should and are actually usable. Signed-off-by: Beeks <HgDelirium@gmail.com>
This commit is contained in:
@@ -349,7 +349,7 @@ void LLFolderViewItem::refresh()
|
||||
LLStringUtil::toUpper(searchable_label_desc);
|
||||
LLStringUtil::toUpper(searchable_label_all);
|
||||
|
||||
if (mSearchableLabel.compare(searchable_label) ||
|
||||
if (mSearchableLabel.compare(searchable_label) ||
|
||||
mSearchableLabelCreator.compare(searchable_label_creator) ||
|
||||
mSearchableLabelDesc.compare(searchable_label_desc) ||
|
||||
mSearchableLabelAll.compare(searchable_label_all))
|
||||
@@ -4746,7 +4746,7 @@ std::string::size_type LLInventoryFilter::getStringMatchOffset() const
|
||||
BOOL LLInventoryFilter::isNotDefault()
|
||||
{
|
||||
return mFilterOps.mFilterTypes != mDefaultFilterOps.mFilterTypes
|
||||
|| mFilterSubString.size()
|
||||
|| mFilterSubString.size()
|
||||
|| mFilterWorn
|
||||
|| mFilterOps.mPermissions != mDefaultFilterOps.mPermissions
|
||||
|| mFilterOps.mMinDate != mDefaultFilterOps.mMinDate
|
||||
|
||||
@@ -472,14 +472,6 @@ 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;
|
||||
}
|
||||
@@ -492,6 +484,14 @@ class LLDoCreateFloater : public inventory_listener_t
|
||||
LLInventoryModel* model = mPtr->getPanel()->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->getPanel(), type);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ LLUUID LLLocalInventory::addItem(std::string name, int type, LLUUID asset_id)
|
||||
"",
|
||||
LLSaleInfo::DEFAULT,
|
||||
0,
|
||||
0);
|
||||
time_corrected());
|
||||
addItem(item);
|
||||
return item_id;
|
||||
}
|
||||
@@ -63,6 +63,7 @@ void LLLocalInventory::addItem(LLViewerInventoryItem* item)
|
||||
//gInventory.addPretendItem(item);
|
||||
LLInventoryModel::update_map_t update;
|
||||
++update[item->getParentUUID()];
|
||||
item->updateServer(TRUE);
|
||||
gInventory.accountForUpdate(update);
|
||||
gInventory.updateItem(item);
|
||||
gInventory.notifyObservers();
|
||||
|
||||
@@ -1256,12 +1256,15 @@ void temp_upload_callback(const LLUUID& uuid, void* user_data, S32 result, LLExt
|
||||
item_id.generate();
|
||||
LLPermissions* perms = new LLPermissions();
|
||||
perms->set(LLPermissions::DEFAULT);
|
||||
perms->setOwnerAndGroup(LLUUID::null, LLUUID::null, LLUUID::null, false);
|
||||
perms->setMaskBase(0);
|
||||
perms->setMaskEveryone(0);
|
||||
perms->setMaskGroup(0);
|
||||
perms->setMaskNext(0);
|
||||
perms->setMaskOwner(0);
|
||||
perms->setOwnerAndGroup(gAgentID, gAgentID, gAgentID, false);
|
||||
|
||||
|
||||
perms->setMaskBase(PERM_ALL);
|
||||
perms->setMaskOwner(PERM_ALL);
|
||||
perms->setMaskEveryone(PERM_ALL);
|
||||
perms->setMaskGroup(PERM_ALL);
|
||||
perms->setMaskNext(PERM_ALL);
|
||||
|
||||
LLViewerInventoryItem* item = new LLViewerInventoryItem(
|
||||
item_id,
|
||||
gLocalInventoryRoot,
|
||||
@@ -1273,7 +1276,7 @@ void temp_upload_callback(const LLUUID& uuid, void* user_data, S32 result, LLExt
|
||||
data->mAssetInfo.getDescription(),
|
||||
LLSaleInfo::DEFAULT,
|
||||
0,
|
||||
0);
|
||||
time_corrected());
|
||||
LLLocalInventory::addItem(item);
|
||||
}
|
||||
else
|
||||
|
||||
@@ -4,40 +4,40 @@
|
||||
mouse_opaque="true" name="Inventory" rect_control="FloaterInventoryRect"
|
||||
title="Inventory" width="467">
|
||||
<search_editor bottom="-50" follows="left|top|right" height="16" label="Type here to search"
|
||||
left="6" mouse_opaque="true" name="inventory search editor" width="455" />
|
||||
<text name="group_titles_textbox" font="SansSerifSmall" follows="left|top"
|
||||
height="16" left="10" bottom_delta="-24" width="120">Quick Filter:</text>
|
||||
<!-- Inventory Type Filter Labels -->
|
||||
<string name="filter_type_all">All Types</string>
|
||||
<string name="filter_type_animation">Animations</string>
|
||||
<string name="filter_type_callingcard">Calling Cards</string>
|
||||
<string name="filter_type_wearable">Clothing / Body Parts</string>
|
||||
<string name="filter_type_gesture">Gestures</string>
|
||||
<string name="filter_type_landmark">Landmarks</string>
|
||||
<string name="filter_type_notecard">Notecards</string>
|
||||
<string name="filter_type_object">Objects</string>
|
||||
<string name="filter_type_script">Scripts</string>
|
||||
<string name="filter_type_sound">Sounds</string>
|
||||
<string name="filter_type_texture">Textures</string>
|
||||
<string name="filter_type_snapshot">Snapshots</string>
|
||||
<string name="filter_type_custom">Custom...</string>
|
||||
<combo_box name="Quick Filter" label="Quick Filter" follows="left|top" height="20" left="80" width="150" bottom_delta="0">
|
||||
<combo_item name="filter_type_all">All Types</combo_item>
|
||||
<separator />
|
||||
<combo_item name="filter_type_animation">Animations</combo_item>
|
||||
<combo_item name="filter_type_callingcard">Calling Cards</combo_item>
|
||||
<combo_item name="filter_type_wearable">Clothing / Body Parts</combo_item>
|
||||
<combo_item name="filter_type_gesture">Gestures</combo_item>
|
||||
<combo_item name="filter_type_landmark">Landmarks</combo_item>
|
||||
<combo_item name="filter_type_notecard">Notecards</combo_item>
|
||||
<combo_item name="filter_type_object">Objects</combo_item>
|
||||
<combo_item name="filter_type_script">Scripts</combo_item>
|
||||
<combo_item name="filter_type_sound">Sounds</combo_item>
|
||||
<combo_item name="filter_type_texture">Textures</combo_item>
|
||||
<combo_item name="filter_type_snapshot">Snapshots</combo_item>
|
||||
<separator />
|
||||
<combo_item name="filter_type_custom">Custom...</combo_item>
|
||||
</combo_box>
|
||||
left="6" mouse_opaque="true" name="inventory search editor" width="455" />
|
||||
<text name="group_titles_textbox" font="SansSerifSmall" follows="left|top"
|
||||
height="16" left="10" bottom_delta="-24" width="120">Quick Filter:</text>
|
||||
<!-- Inventory Type Filter Labels -->
|
||||
<string name="filter_type_all">All Types</string>
|
||||
<string name="filter_type_animation">Animations</string>
|
||||
<string name="filter_type_callingcard">Calling Cards</string>
|
||||
<string name="filter_type_wearable">Clothing / Body Parts</string>
|
||||
<string name="filter_type_gesture">Gestures</string>
|
||||
<string name="filter_type_landmark">Landmarks</string>
|
||||
<string name="filter_type_notecard">Notecards</string>
|
||||
<string name="filter_type_object">Objects</string>
|
||||
<string name="filter_type_script">Scripts</string>
|
||||
<string name="filter_type_sound">Sounds</string>
|
||||
<string name="filter_type_texture">Textures</string>
|
||||
<string name="filter_type_snapshot">Snapshots</string>
|
||||
<string name="filter_type_custom">Custom...</string>
|
||||
<combo_box name="Quick Filter" label="Quick Filter" follows="left|top" height="20" left="80" width="150" bottom_delta="0">
|
||||
<combo_item name="filter_type_all">All Types</combo_item>
|
||||
<separator />
|
||||
<combo_item name="filter_type_animation">Animations</combo_item>
|
||||
<combo_item name="filter_type_callingcard">Calling Cards</combo_item>
|
||||
<combo_item name="filter_type_wearable">Clothing / Body Parts</combo_item>
|
||||
<combo_item name="filter_type_gesture">Gestures</combo_item>
|
||||
<combo_item name="filter_type_landmark">Landmarks</combo_item>
|
||||
<combo_item name="filter_type_notecard">Notecards</combo_item>
|
||||
<combo_item name="filter_type_object">Objects</combo_item>
|
||||
<combo_item name="filter_type_script">Scripts</combo_item>
|
||||
<combo_item name="filter_type_sound">Sounds</combo_item>
|
||||
<combo_item name="filter_type_texture">Textures</combo_item>
|
||||
<combo_item name="filter_type_snapshot">Snapshots</combo_item>
|
||||
<separator />
|
||||
<combo_item name="filter_type_custom">Custom...</combo_item>
|
||||
</combo_box>
|
||||
<tab_container name="inventory filter tabs" follows="left|top|right|bottom"
|
||||
bottom_delta="-487" height="480" left="2" width="463"
|
||||
mouse_opaque="false" tab_position="top">
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
halign="center" height="20" label="Default" label_selected="Default"
|
||||
left="4" mouse_opaque="true" name="Default" scale_image="true" width="64" />
|
||||
<button bottom="-228" enabled="false" follows="left|bottom" font="SansSerifSmall"
|
||||
halign="center" height="20" label="None" label_selected="None" left="72"
|
||||
mouse_opaque="true" name="None" scale_image="true" width="64" />
|
||||
halign="center" height="20" label="Alpha" label_selected="Alpha" left="72"
|
||||
mouse_opaque="true" name="Alpha" scale_image="true" width="64" />
|
||||
<button bottom="-252" enabled="true" follows="left|bottom" font="SansSerifSmall"
|
||||
halign="center" height="20" label="Blank" label_selected="Blank" left="4"
|
||||
mouse_opaque="true" name="Blank" scale_image="true" width="64" />
|
||||
|
||||
Reference in New Issue
Block a user