summaryrefslogtreecommitdiff
path: root/indra/newview/llenvironment.cpp
diff options
context:
space:
mode:
authormaxim_productengine <mnikolenko@productengine.com>2019-02-01 18:33:55 +0200
committermaxim_productengine <mnikolenko@productengine.com>2019-02-01 18:33:55 +0200
commitfcf25b690f94aff846a846fd52eeb778e8507f25 (patch)
tree12f917a09ffbca3ddb9e2cd06fc0f13e7ce44038 /indra/newview/llenvironment.cpp
parent2456715a407cc11f3e0077cb3c54e21188e6ec86 (diff)
SL-10364 FIXED Parcel Sky Altitudes not set correct when opening About Land -> Environment for the first time upon region arrival
Diffstat (limited to 'indra/newview/llenvironment.cpp')
-rw-r--r--indra/newview/llenvironment.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/newview/llenvironment.cpp b/indra/newview/llenvironment.cpp
index a397f0f27a..bf8cf4b552 100644
--- a/indra/newview/llenvironment.cpp
+++ b/indra/newview/llenvironment.cpp
@@ -846,6 +846,17 @@ bool LLEnvironment::isInventoryEnabled() const
void LLEnvironment::onRegionChange()
{
clearExperienceEnvironment(LLUUID::null, TRANSITION_DEFAULT);
+
+ LLViewerRegion* cur_region = gAgent.getRegion();
+ if (!cur_region)
+ {
+ return;
+ }
+ if (!cur_region->capabilitiesReceived())
+ {
+ cur_region->setCapabilitiesReceivedCallback([](LLUUID region_id) { LLEnvironment::instance().requestRegion(); });
+ return;
+ }
requestRegion();
}