diff options
author | maxim_productengine <mnikolenko@productengine.com> | 2019-05-17 17:46:40 +0300 |
---|---|---|
committer | maxim_productengine <mnikolenko@productengine.com> | 2019-05-17 17:46:40 +0300 |
commit | c8fdbdd5a56e5dfca699a3bad09b32b6c5f3fe1e (patch) | |
tree | cdc2e600a21ccaeef452972f9262007fd722aff8 /indra/newview/llpanelenvironment.cpp | |
parent | b3c0218a31b9d7dd699cf3944bbcfc35e9adbd49 (diff) |
SL-11205 [EEP] The Sky Altitude icons should move only if they are dragged.
Diffstat (limited to 'indra/newview/llpanelenvironment.cpp')
-rw-r--r-- | indra/newview/llpanelenvironment.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/indra/newview/llpanelenvironment.cpp b/indra/newview/llpanelenvironment.cpp index cda1137182..034e5f81b4 100644 --- a/indra/newview/llpanelenvironment.cpp +++ b/indra/newview/llpanelenvironment.cpp @@ -318,6 +318,7 @@ void LLPanelEnvironmentInfo::refresh() LL_WARNS("ENVPANEL") << "Failed to add altitude sliders!" << LL_ENDL; } readjustAltLabels(); + sld->resetCurSlider(); } updateAltLabel(alt_prefixes[3], 1, 0); // ground @@ -780,11 +781,8 @@ void LLPanelEnvironmentInfo::onAltSliderMouseUp() { alts.push_back(alt.second.mAltitude); } - - LLEnvironment::instance().updateParcel(getParcelId(), LLSettingsDay::ptr_t(), - -1, -1, alts, - [that_h](S32 parcel_id, LLEnvironment::EnvironmentInfo::ptr_t envifo) { _onEnvironmentReceived(that_h, parcel_id, envifo); }); - + setControlsEnabled(false); + LLEnvironment::instance().updateParcel(getParcelId(), LLSettingsDay::ptr_t(), -1, -1, alts); } } |