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.

meow-7.2.2
Ansariel 2011-07-04 00:44:00 +02:00
parent 213cbde97a
commit d04f5da0ce
1 changed files with 8 additions and 0 deletions

View File

@ -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;