diff options
author | Graham Linden <graham@lindenlab.com> | 2019-01-03 08:47:03 -0800 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2019-01-03 08:47:03 -0800 |
commit | cccb3a541c655c15c7578bb50dd762b68ccbfcac (patch) | |
tree | 724f8a16f9edbaaf461ca034a0ba413384d7c7e0 /indra/newview/llenvironment.cpp | |
parent | 744e22e3645e205fa3f37ff3532bca607057887f (diff) | |
parent | d607d81dba25dfe7dd1ecdf123af656ca939924f (diff) |
Merge
Diffstat (limited to 'indra/newview/llenvironment.cpp')
-rw-r--r-- | indra/newview/llenvironment.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/newview/llenvironment.cpp b/indra/newview/llenvironment.cpp index a8a386edee..3541eb40fa 100644 --- a/indra/newview/llenvironment.cpp +++ b/indra/newview/llenvironment.cpp @@ -1600,6 +1600,7 @@ LLEnvironment::EnvironmentInfo::ptr_t LLEnvironment::EnvironmentInfo::extract(LL LLSD daynames = environment[KEY_DAYNAMES]; if (daynames.isArray()) { + pinfo->mDayCycleName.clear(); for (S32 index = 0; index < pinfo->mNameList.size(); ++index) { pinfo->mNameList[index] = daynames[index].asString(); @@ -1607,9 +1608,19 @@ LLEnvironment::EnvironmentInfo::ptr_t LLEnvironment::EnvironmentInfo::extract(LL } else if (daynames.isString()) { + for (std::string &name: pinfo->mNameList) + { + name.clear(); + } + pinfo->mDayCycleName = daynames.asString(); } } + else if (pinfo->mDayCycle) + { + pinfo->mDayCycleName = pinfo->mDayCycle->getName(); + } + if (environment.has(KEY_ENVVERSION)) { |