summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelvolume.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llpanelvolume.cpp')
-rw-r--r--indra/newview/llpanelvolume.cpp19
1 files changed, 2 insertions, 17 deletions
diff --git a/indra/newview/llpanelvolume.cpp b/indra/newview/llpanelvolume.cpp
index d47383b29a..b1d3ac2245 100644
--- a/indra/newview/llpanelvolume.cpp
+++ b/indra/newview/llpanelvolume.cpp
@@ -746,21 +746,6 @@ void LLPanelVolume::sendIsLight()
LL_INFOS() << "update light sent" << LL_ENDL;
}
-void notify_cant_select_reflection_probe()
-{
- static bool show_notification = true;
- if (show_notification)
- {
- // show only once per session if not ignored
- show_notification = false;
- if (!gSavedSettings.getBOOL("SelectReflectionProbes"))
- {
- LLNotificationsUtil::add("CantSelectReflectionProbe");
- }
- // else: user used the setting, don't show again this session
- }
-}
-
void LLPanelVolume::sendIsReflectionProbe()
{
LLViewerObject* objectp = mObject;
@@ -779,7 +764,7 @@ void LLPanelVolume::sendIsReflectionProbe()
}
else
{
- notify_cant_select_reflection_probe();
+ LLNotificationsUtil::add("CantSelectReflectionProbe");
volobjp->setIsReflectionProbe(value);
}
}
@@ -796,7 +781,7 @@ void LLPanelVolume::doSendIsReflectionProbe(const LLSD & notification, const LLS
}
LLVOVolume* volobjp = (LLVOVolume*)objectp;
- notify_cant_select_reflection_probe();
+ LLNotificationsUtil::add("CantSelectReflectionProbe");
volobjp->setIsReflectionProbe(true);
{ // has become a reflection probe, slam to a 10m sphere and pop up a message