diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp
index c70352e760..302d2a5f49 100644
--- a/indra/newview/llviewermenu.cpp
+++ b/indra/newview/llviewermenu.cpp
@@ -10402,6 +10402,13 @@ class LLViewCheckHUDAttachments : public view_listener_t
}
};
+// Disable Show HUD attachments if prevented by RLVa
+bool enable_show_HUD_attachments()
+{
+ return (!rlv_handler_t::isEnabled() || !gRlvAttachmentLocks.hasLockedHUD());
+};
+//
+
class LLEditEnableTakeOff : public view_listener_t
{
bool handleEvent(const LLSD& userdata)
@@ -11105,6 +11112,7 @@ void initialize_menus()
view_listener_t::addMenu(new LLViewStatusAway(), "View.Status.CheckAway");
view_listener_t::addMenu(new LLViewStatusDoNotDisturb(), "View.Status.CheckDoNotDisturb");
view_listener_t::addMenu(new LLViewCheckHUDAttachments(), "View.CheckHUDAttachments");
+ enable.add("View.EnableHUDAttachments", boost::bind(&enable_show_HUD_attachments)); // Disable Show HUD attachments if prevented by RLVa
// Add reset camera angles menu
view_listener_t::addMenu(new LLViewResetCameraAngles(), "View.ResetCameraAngles");
//
diff --git a/indra/newview/skins/default/xui/en/menu_viewer.xml b/indra/newview/skins/default/xui/en/menu_viewer.xml
index 45a8ae9dbf..569a4be68d 100644
--- a/indra/newview/skins/default/xui/en/menu_viewer.xml
+++ b/indra/newview/skins/default/xui/en/menu_viewer.xml
@@ -347,6 +347,8 @@
function="View.CheckHUDAttachments" />
+