Prevent Edit->Attach/Detach menus from cumulatively growing larger every time LiruUseContextMenus setting was changed.

This commit is contained in:
Shyotl
2017-01-11 18:10:09 -06:00
parent 98516a2a22
commit 632725e788

View File

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