Skip to content

Commit

Permalink
Prevent Edit->Attach/Detach menus from cumulatively growing larger ev…
Browse files Browse the repository at this point in the history
…ery time LiruUseContextMenus setting was changed.
  • Loading branch information
Shyotl committed Jan 12, 2017
1 parent 98516a2 commit 632725e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions indra/newview/llvoavatarself.cpp
Expand Up @@ -506,6 +506,10 @@ void LLVOAvatarSelf::buildContextMenus()
}
}

//buildContextMenus can be called whenever "LiruUseContextMenus" setting changes. Clear out Edit->Attach/Detach menus before (re)populating them.
gAttachSubMenu->empty();
gDetachSubMenu->empty();

for (S32 pass = 0; pass < 2; pass++)
{
// *TODO: Skinning - gAttachSubMenu is an awful, awful hack
Expand Down

0 comments on commit 632725e

Please sign in to comment.