summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorVadim ProductEngine <vsavchuk@productengine.com>2011-05-24 20:29:46 +0300
committerVadim ProductEngine <vsavchuk@productengine.com>2011-05-24 20:29:46 +0300
commit72d1efb1529ad0863d35b219a461f353a4b19353 (patch)
tree8e148cfa223840ad1b9a2540975cc0172fee8875 /indra/newview
parentd755605f8dc5bba0abdb87f075db2b6a5ed4ecad (diff)
STORM-1256 WIP Re-request region settings if our attempt to change them has failed.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llfloaterregioninfo.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llfloaterregioninfo.cpp b/indra/newview/llfloaterregioninfo.cpp
index d47fb00060..ff34e21c2f 100644
--- a/indra/newview/llfloaterregioninfo.cpp
+++ b/indra/newview/llfloaterregioninfo.cpp
@@ -3504,5 +3504,12 @@ void LLPanelEnvironmentInfo::onRegionSettingsApplied(bool ok)
if (!ok)
{
setApplyProgress(false);
+
+ // We need to re-request environment setting here,
+ // otherwise our subsequent attempts to change region settings will fail with the following error:
+ // "Unable to update environment settings because the last update your viewer saw was not the same
+ // as the last update sent from the simulator. Try sending your update again, and if this
+ // does not work, try leaving and returning to the region."
+ LLEnvManagerNew::instance().requestRegionSettings();
}
}