From c8fdbdd5a56e5dfca699a3bad09b32b6c5f3fe1e Mon Sep 17 00:00:00 2001 From: maxim_productengine Date: Fri, 17 May 2019 17:46:40 +0300 Subject: SL-11205 [EEP] The Sky Altitude icons should move only if they are dragged. --- indra/newview/llpanelenvironment.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'indra/newview/llpanelenvironment.cpp') 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); } } -- cgit v1.2.3