diff options
| author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2026-05-13 22:53:45 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-13 22:53:45 +0300 |
| commit | 9cd5eb8cac12b50e1590c1a472886c37aae58b7b (patch) | |
| tree | 5d44b45c45a60433102dee05ddf45b44dd3674a3 /indra/newview/llagent.cpp | |
| parent | 5ffe81be36e55d12c926351c30036304cc6a106e (diff) | |
#5806 add option to reset environment after teleport
Diffstat (limited to 'indra/newview/llagent.cpp')
| -rw-r--r-- | indra/newview/llagent.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index 123ffa676e..31814d8f4f 100644 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -44,6 +44,7 @@ #include "llchicletbar.h" #include "llconsole.h" #include "lldonotdisturbnotificationstorage.h" +#include "llenvironment.h" #include "llfirstuse.h" #include "llfloatercamera.h" #include "llfloaterimcontainer.h" @@ -4172,6 +4173,11 @@ void LLAgent::handleTeleportFinished() mRegionp->setCapabilitiesReceivedCallback(boost::bind(&LLAgent::onCapabilitiesReceivedAfterTeleport)); } } + static LLCachedControl<bool> shared_env_on_teleport(gSavedSettings, "SwitchToSharedEnvAfterTeleport", true); + if (shared_env_on_teleport) + { + LLEnvironment::instance().setSharedEnvironment(); + } LLPerfStats::tunables.autoTuneTimeout = true; } |
