Fix unable to delete links and make more purdy
This commit is contained in:
@@ -1130,6 +1130,9 @@ void LLAgentWearables::makeNewOutfit(
|
|||||||
if( old_wearable )
|
if( old_wearable )
|
||||||
{
|
{
|
||||||
LLViewerInventoryItem* item = gInventory.getItem(getWearableItemID((LLWearableType::EType)index));
|
LLViewerInventoryItem* item = gInventory.getItem(getWearableItemID((LLWearableType::EType)index));
|
||||||
|
llassert(item);
|
||||||
|
if (!item)
|
||||||
|
continue;
|
||||||
if (fUseOutfits)
|
if (fUseOutfits)
|
||||||
{
|
{
|
||||||
std::string strOrdering = llformat("@%d", item->getWearableType() * 100);
|
std::string strOrdering = llformat("@%d", item->getWearableType() * 100);
|
||||||
|
|||||||
@@ -797,7 +797,7 @@ void LLInvFVBridge::addDeleteContextMenuOptions(menuentry_vec_t &items,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// "Remove link" and "Delete" are the same operation.
|
// "Remove link" and "Delete" are the same operation.
|
||||||
if (obj && obj->getIsLinkType() && !get_is_item_worn(mUUID))
|
if (obj && obj->getIsLinkType() /* && !get_is_item_worn(mUUID)*/)
|
||||||
{
|
{
|
||||||
items.push_back(std::string("Remove Link"));
|
items.push_back(std::string("Remove Link"));
|
||||||
}
|
}
|
||||||
@@ -4289,7 +4289,7 @@ void LLObjectBridge::buildContextMenu(LLMenuGL& menu, U32 flags)
|
|||||||
|
|
||||||
if (!avatarp->canAttachMoreObjects())
|
if (!avatarp->canAttachMoreObjects())
|
||||||
{
|
{
|
||||||
disabled_items.push_back(std::string("Object Wea"));
|
disabled_items.push_back(std::string("Object Wear"));
|
||||||
disabled_items.push_back(std::string("Object Add"));
|
disabled_items.push_back(std::string("Object Add"));
|
||||||
disabled_items.push_back(std::string("Attach To"));
|
disabled_items.push_back(std::string("Attach To"));
|
||||||
disabled_items.push_back(std::string("Attach To HUD"));
|
disabled_items.push_back(std::string("Attach To HUD"));
|
||||||
|
|||||||
@@ -198,7 +198,15 @@
|
|||||||
name="Paste As Link" width="128">
|
name="Paste As Link" width="128">
|
||||||
<on_click filter="" function="Inventory.DoToSelected" userdata="paste_link" />
|
<on_click filter="" function="Inventory.DoToSelected" userdata="paste_link" />
|
||||||
</menu_item_call>
|
</menu_item_call>
|
||||||
|
<menu_item_call bottom_delta="-18" height="18" label="Restore in World" left="0" mouse_opaque="true"
|
||||||
|
name="Restore to Last Position" width="128">
|
||||||
|
<on_click filter="" function="Inventory.DoToSelected" userdata="restoreToWorld" />
|
||||||
|
</menu_item_call>
|
||||||
<menu_item_separator name="Paste Separator" />
|
<menu_item_separator name="Paste Separator" />
|
||||||
|
<menu_item_call bottom_delta="-18" height="18" label="Remove Link" left="0" mouse_opaque="true"
|
||||||
|
name="Remove Link" width="128">
|
||||||
|
<on_click filter="" function="Inventory.DoToSelected" userdata="delete" />
|
||||||
|
</menu_item_call>
|
||||||
<menu_item_call bottom_delta="-18" height="18" label="Delete" left="0" mouse_opaque="true"
|
<menu_item_call bottom_delta="-18" height="18" label="Delete" left="0" mouse_opaque="true"
|
||||||
name="Delete" width="128">
|
name="Delete" width="128">
|
||||||
<on_click filter="" function="Inventory.DoToSelected" userdata="delete" />
|
<on_click filter="" function="Inventory.DoToSelected" userdata="delete" />
|
||||||
@@ -267,10 +275,6 @@
|
|||||||
<on_click filter="" function="Inventory.DoToSelected" userdata="deactivate" />
|
<on_click filter="" function="Inventory.DoToSelected" userdata="deactivate" />
|
||||||
</menu_item_call>
|
</menu_item_call>
|
||||||
<menu_item_separator name="Attach Separator" />
|
<menu_item_separator name="Attach Separator" />
|
||||||
<menu_item_call bottom_delta="-18" height="18" label="Restore in World" left="0" mouse_opaque="true"
|
|
||||||
name="Restore to Last Position" width="128">
|
|
||||||
<on_click filter="" function="Inventory.DoToSelected" userdata="restoreToWorld" />
|
|
||||||
</menu_item_call>
|
|
||||||
<menu_item_call bottom_delta="-18" height="18" label="Wear" left="0" mouse_opaque="true"
|
<menu_item_call bottom_delta="-18" height="18" label="Wear" left="0" mouse_opaque="true"
|
||||||
name="Object Wear" width="128">
|
name="Object Wear" width="128">
|
||||||
<on_click filter="" function="Inventory.DoToSelected" userdata="attach" />
|
<on_click filter="" function="Inventory.DoToSelected" userdata="attach" />
|
||||||
@@ -302,5 +306,5 @@
|
|||||||
</menu_item_call>
|
</menu_item_call>
|
||||||
<menu_item_call bottom_delta="-18" height="18" label="--no options--" left="0"
|
<menu_item_call bottom_delta="-18" height="18" label="--no options--" left="0"
|
||||||
mouse_opaque="true" name="--no options--" width="128" />
|
mouse_opaque="true" name="--no options--" width="128" />
|
||||||
<menu_item_separator name="Wearable Separator" />
|
<--menu_item_separator name="Wearable Separator" /-->
|
||||||
</menu>
|
</menu>
|
||||||
|
|||||||
Reference in New Issue
Block a user