MAINT-7637 Don't allow adding own avatar to rendering exceptions list

master
Mnikolenko ProductEngine 2017-07-26 15:49:55 +03:00
parent 06c2f24df9
commit 822183057b
2 changed files with 14 additions and 0 deletions

View File

@ -27,11 +27,13 @@
#include "llfloateravatarrendersettings.h"
#include "llagent.h"
#include "llavatarnamecache.h"
#include "llfloateravatarpicker.h"
#include "llfiltereditor.h"
#include "llfloaterreg.h"
#include "llnamelistctrl.h"
#include "llnotificationsutil.h"
#include "llmenugl.h"
#include "lltrans.h"
#include "llviewerobjectlist.h"
@ -268,6 +270,11 @@ void LLFloaterAvatarRenderSettings::onClickAdd(const LLSD& userdata)
void LLFloaterAvatarRenderSettings::callbackAvatarPicked(const uuid_vec_t& ids, S32 visual_setting)
{
if (ids.empty()) return;
if(ids[0] == gAgentID)
{
LLNotificationsUtil::add("AddSelfRenderExceptions");
return;
}
setAvatarRenderSetting(ids[0], visual_setting);
}

View File

@ -6573,6 +6573,13 @@ Topic: [SUBJECT], Message: [MESSAGE]
Although you're very nice, you can't add yourself as a friend.
</notification>
<notification
icon="notifytip.tga"
name="AddSelfRenderExceptions"
type="notifytip">
You can&apos;t add yourself to the rendering exceptions list.
</notification>
<notification
icon="notifytip.tga"
name="UploadingAuctionSnapshot"