summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelenvironment.cpp
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2018-09-11 14:04:43 -0700
committerRider Linden <rider@lindenlab.com>2018-09-11 14:04:43 -0700
commita0b9c262185c00d15fb54d06ab2fdb1c6d6b95d9 (patch)
tree1d2653c569cf1a7142f6602254fd068be1f2745b /indra/newview/llpanelenvironment.cpp
parentfe28c3e886aa8a9d5c5b9bc582b532f1235bd76c (diff)
SL-9620: Double check that commit actually passes back a day cycle from the editor.
Also hide the altitude setting interface for the moment.
Diffstat (limited to 'indra/newview/llpanelenvironment.cpp')
-rw-r--r--indra/newview/llpanelenvironment.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llpanelenvironment.cpp b/indra/newview/llpanelenvironment.cpp
index 825a38e8b2..d3325796fb 100644
--- a/indra/newview/llpanelenvironment.cpp
+++ b/indra/newview/llpanelenvironment.cpp
@@ -205,6 +205,10 @@ void LLPanelEnvironmentInfo::refresh()
udpateApparentTimeOfDay();
+#if 1
+ // hiding the controls until Rider can get the simulator code to adjust altitudes done.
+ getChild<LLUICtrl>(PNL_ENVIRONMENT_ALTITUDES)->setVisible(FALSE);
+#else
LLEnvironment::altitude_list_t altitudes = LLEnvironment::instance().getRegionAltitudes();
if (altitudes.size() > 0)
{
@@ -216,6 +220,7 @@ void LLPanelEnvironmentInfo::refresh()
mAltitudes[alt_sliders[idx]] = AltitudeData(idx+1, idx, altitudes[idx+1]);
}
}
+#endif
}
@@ -610,6 +615,11 @@ void LLPanelEnvironmentInfo::onPickerCommited(LLUUID asset_id)
void LLPanelEnvironmentInfo::onEditCommited(LLSettingsDay::ptr_t newday)
{
+ if (!newday)
+ {
+ LL_WARNS("ENVPANEL") << "Editor committed an empty day. Do nothing." << LL_ENDL;
+ return;
+ }
size_t newhash(newday->getHash());
size_t oldhash((mCurrentEnvironment->mDayCycle) ? mCurrentEnvironment->mDayCycle->getHash() : 0);