MAINT-7637 Don't allow adding own avatar to rendering exceptions list
parent
06c2f24df9
commit
822183057b
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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't add yourself to the rendering exceptions list.
|
||||
</notification>
|
||||
|
||||
<notification
|
||||
icon="notifytip.tga"
|
||||
name="UploadingAuctionSnapshot"
|
||||
|
|
|
|||
Loading…
Reference in New Issue