Allow to disable chat animation

This commit is contained in:
Siana Gearz
2012-02-06 03:52:25 +01:00
parent 8a49d4ef94
commit 8450386330
5 changed files with 23 additions and 2 deletions

View File

@@ -685,8 +685,10 @@ void LLChatBar::sendChatFromViewer(const LLWString &wtext, EChatType type, BOOL
}
// [/RLVa:KB]
LLCachedControl<bool> disable_chat_animation("SGDisableChatAnimation");
// Don't animate for chats people can't hear (chat to scripts)
if (animate && (channel == 0))
if (animate && (channel == 0) && !disable_chat_animation)
{
if (type == CHAT_TYPE_WHISPER)
{