Hide bridge from attach to HUD menus

Ansariel 2014-07-19 00:17:52 +02:00
parent 034c792a5a
commit 8e8d38d8ef
1 changed files with 4 additions and 1 deletions

View File

@ -7988,7 +7988,10 @@ static bool onEnableAttachmentLabel(LLUICtrl* ctrl, const LLSD& data)
if (attached_object)
{
LLViewerInventoryItem* itemp = gInventory.getItem(attached_object->getAttachmentItemID());
if (itemp)
// <FS:Ansariel> Hide bridge from attach to HUD menus
//if (itemp)
if (itemp && !(FSLSLBridge::instance().getBridge() && FSLSLBridge::instance().getBridge()->getUUID() == itemp->getUUID() && data["index"].asInteger() == FS_BRIDGE_POINT))
// </FS:Ansariel>
{
label += std::string(" (") + itemp->getName() + std::string(")");
break;