diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-11-08 02:05:33 +0200 | 
|---|---|---|
| committer | akleshchev <117672381+akleshchev@users.noreply.github.com> | 2023-11-08 20:21:24 +0200 | 
| commit | 901de39ca791253d59b60d311d99c0432e0179a5 (patch) | |
| tree | a4ab375083e44d8eb514c13ac1230aa565ed9fa5 /indra | |
| parent | de844bfce11ea46d428d775d377460db8a2cf54b (diff) | |
SL-20569 Notify user when reflection probe can't be selected #2
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/llpanelvolume.cpp | 19 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/notifications.xml | 2 | 
2 files changed, 3 insertions, 18 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 diff --git a/indra/newview/skins/default/xui/en/notifications.xml b/indra/newview/skins/default/xui/en/notifications.xml index 16fc79b77d..6c841ac049 100644 --- a/indra/newview/skins/default/xui/en/notifications.xml +++ b/indra/newview/skins/default/xui/en/notifications.xml @@ -7018,7 +7018,7 @@ Please try again.     name="CantSelectReflectionProbe"     type="alertmodal">      <unique/> -    You have placed a reflection probe, but option for selecting reflection probes is disabled. To be able to select reflection probes enable Build > Options > Select Reflection Probes. +    You have placed a reflection probe, but 'Select Reflection Probes' is disabled. To be able to select reflection probes, check Build > Options > Select Reflection Probes.      <tag>confirm</tag>      <usetemplate       ignoretext="Don't show again." | 
