summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2018-06-05 19:22:31 +0100
committerGraham Linden <graham@lindenlab.com>2018-06-05 19:22:31 +0100
commit6b7f624a4b7dd11e03cd9b6ed96d61881e121a37 (patch)
tree5216d0ad2ce175876a23487842aa6204c85ed41a
parent197fbaa7f6b4e7c6edc1d8be3c84146d7fb456cc (diff)
parent610a793aa8fb9f918fc25eeab02b7415ac18b33b (diff)
Merge
-rw-r--r--indra/llinventory/llsettingssky.cpp1
-rw-r--r--indra/llrender/llrender.cpp1
-rw-r--r--indra/newview/llenvironment.cpp12
-rw-r--r--indra/newview/llenvironment.h12
4 files changed, 12 insertions, 14 deletions
diff --git a/indra/llinventory/llsettingssky.cpp b/indra/llinventory/llsettingssky.cpp
index 969e0d1791..263e721d00 100644
--- a/indra/llinventory/llsettingssky.cpp
+++ b/indra/llinventory/llsettingssky.cpp
@@ -1053,4 +1053,3 @@ LLUUID LLSettingsSky::GetDefaultAssetId()
{
return DEFAULT_ASSET_ID;
}
-
diff --git a/indra/llrender/llrender.cpp b/indra/llrender/llrender.cpp
index 5d47027511..c42d2799d7 100644
--- a/indra/llrender/llrender.cpp
+++ b/indra/llrender/llrender.cpp
@@ -2437,4 +2437,3 @@ glh::matrix4f gl_lookat(LLVector3 eye, LLVector3 center, LLVector3 up)
0, 0, 0, 1);
}
-
diff --git a/indra/newview/llenvironment.cpp b/indra/newview/llenvironment.cpp
index 097b229587..02d79b2bae 100644
--- a/indra/newview/llenvironment.cpp
+++ b/indra/newview/llenvironment.cpp
@@ -1134,7 +1134,7 @@ void LLEnvironment::requestRegion()
requestParcel(INVALID_PARCEL_ID);
}
-void LLEnvironment::updateRegion(LLSettingsDay::ptr_t &pday, S32 day_length, S32 day_offset)
+void LLEnvironment::updateRegion(const LLSettingsDay::ptr_t &pday, S32 day_length, S32 day_offset)
{
if (!isExtendedEnvironmentEnabled())
{
@@ -1157,12 +1157,12 @@ void LLEnvironment::updateRegion(const LLUUID &asset_id, S32 day_length, S32 day
updateParcel(INVALID_PARCEL_ID, asset_id, day_length, day_offset);
}
-void LLEnvironment::updateRegion(LLSettingsSky::ptr_t &psky, S32 day_length, S32 day_offset)
+void LLEnvironment::updateRegion(const LLSettingsSky::ptr_t &psky, S32 day_length, S32 day_offset)
{
updateParcel(INVALID_PARCEL_ID, psky, day_length, day_offset);
}
-void LLEnvironment::updateRegion(LLSettingsWater::ptr_t &pwater, S32 day_length, S32 day_offset)
+void LLEnvironment::updateRegion(const LLSettingsWater::ptr_t &pwater, S32 day_length, S32 day_offset)
{
updateParcel(INVALID_PARCEL_ID, pwater, day_length, day_offset);
}
@@ -1215,19 +1215,19 @@ void LLEnvironment::onUpdateParcelAssetLoaded(LLUUID asset_id, LLSettingsBase::p
updateParcel(parcel_id, pday, day_length, day_offset);
}
-void LLEnvironment::updateParcel(S32 parcel_id, LLSettingsSky::ptr_t &psky, S32 day_length, S32 day_offset)
+void LLEnvironment::updateParcel(S32 parcel_id, const LLSettingsSky::ptr_t &psky, S32 day_length, S32 day_offset)
{
LLSettingsDay::ptr_t pday = createDayCycleFromEnvironment((parcel_id == INVALID_PARCEL_ID) ? ENV_REGION : ENV_PARCEL, psky);
updateParcel(parcel_id, pday, day_length, day_offset);
}
-void LLEnvironment::updateParcel(S32 parcel_id, LLSettingsWater::ptr_t &pwater, S32 day_length, S32 day_offset)
+void LLEnvironment::updateParcel(S32 parcel_id, const LLSettingsWater::ptr_t &pwater, S32 day_length, S32 day_offset)
{
LLSettingsDay::ptr_t pday = createDayCycleFromEnvironment((parcel_id == INVALID_PARCEL_ID) ? ENV_REGION : ENV_PARCEL, pwater);
updateParcel(parcel_id, pday, day_length, day_offset);
}
-void LLEnvironment::updateParcel(S32 parcel_id, LLSettingsDay::ptr_t &pday, S32 day_length, S32 day_offset)
+void LLEnvironment::updateParcel(S32 parcel_id, const LLSettingsDay::ptr_t &pday, S32 day_length, S32 day_offset)
{
std::string coroname =
LLCoros::instance().launch("LLEnvironment::coroUpdateEnvironment",
diff --git a/indra/newview/llenvironment.h b/indra/newview/llenvironment.h
index 66950b0625..8202564ce7 100644
--- a/indra/newview/llenvironment.h
+++ b/indra/newview/llenvironment.h
@@ -239,15 +239,15 @@ public:
void requestRegion();
void updateRegion(const LLUUID &asset_id, S32 day_length, S32 day_offset);
- void updateRegion(LLSettingsDay::ptr_t &pday, S32 day_length, S32 day_offset);
- void updateRegion(LLSettingsSky::ptr_t &psky, S32 day_length, S32 day_offset);
- void updateRegion(LLSettingsWater::ptr_t &pwater, S32 day_length, S32 day_offset);
+ void updateRegion(const LLSettingsDay::ptr_t &pday, S32 day_length, S32 day_offset);
+ void updateRegion(const LLSettingsSky::ptr_t &psky, S32 day_length, S32 day_offset);
+ void updateRegion(const LLSettingsWater::ptr_t &pwater, S32 day_length, S32 day_offset);
void resetRegion();
void requestParcel(S32 parcel_id);
void updateParcel(S32 parcel_id, const LLUUID &asset_id, S32 day_length, S32 day_offset);
- void updateParcel(S32 parcel_id, LLSettingsDay::ptr_t &pday, S32 day_length, S32 day_offset);
- void updateParcel(S32 parcel_id, LLSettingsSky::ptr_t &psky, S32 day_length, S32 day_offset);
- void updateParcel(S32 parcel_id, LLSettingsWater::ptr_t &pwater, S32 day_length, S32 day_offset);
+ void updateParcel(S32 parcel_id, const LLSettingsDay::ptr_t &pday, S32 day_length, S32 day_offset);
+ void updateParcel(S32 parcel_id, const LLSettingsSky::ptr_t &psky, S32 day_length, S32 day_offset);
+ void updateParcel(S32 parcel_id, const LLSettingsWater::ptr_t &pwater, S32 day_length, S32 day_offset);
void resetParcel(S32 parcel_id);
void selectAgentEnvironment();