From d04f5da0cee02dd4d4161a148c8703c416f8c283 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Mon, 4 Jul 2011 00:44:00 +0200 Subject: [PATCH] FIRE-1895: Workaround to show proper attachment point string for bridge in avatar script limits and in cases where the bridge object wasn't renamed properly. --- indra/newview/llfloaterscriptlimits.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/indra/newview/llfloaterscriptlimits.cpp b/indra/newview/llfloaterscriptlimits.cpp index a50907601c..6139a839cf 100644 --- a/indra/newview/llfloaterscriptlimits.cpp +++ b/indra/newview/llfloaterscriptlimits.cpp @@ -1211,6 +1211,14 @@ void LLPanelScriptLimitsAttachment::setAttachmentDetails(LLSD content) urls = content["attachments"][i]["objects"][j]["resources"]["urls"].asInteger(); } std::string name = content["attachments"][i]["objects"][j]["name"].asString(); + + // Ansariel: Crude hack to make the bridge display the proper attachment spot + // and not "MissingString(Bad attachment point)" + if (humanReadableLocation == "MissingString(Bad attachment point)" && (name.find("Firestorm LSL Bridge") != std::string::npos || name == "Rock - medium, round")) + { + humanReadableLocation = LLTrans::getString("Bridge"); + name = "Firestorm LSL Bridge"; + } LLSD element;