diff options
author | Oz Linden <oz@lindenlab.com> | 2011-05-25 08:45:39 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2011-05-25 08:45:39 -0400 |
commit | c5987522881a5254dd070d4f8daedb80ede4b2b8 (patch) | |
tree | 8bc8254ab3c7e43619090376c7e55c2722098416 /indra/newview/llwldaycycle.cpp | |
parent | 551d17f819ea3dbcdc61cb41a458ab6d893d28cf (diff) | |
parent | 72d1efb1529ad0863d35b219a461f353a4b19353 (diff) |
merge lastest updates from windlight integration branch
Diffstat (limited to 'indra/newview/llwldaycycle.cpp')
-rw-r--r-- | indra/newview/llwldaycycle.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/indra/newview/llwldaycycle.cpp b/indra/newview/llwldaycycle.cpp index 05f7fd9872..7363392042 100644 --- a/indra/newview/llwldaycycle.cpp +++ b/indra/newview/llwldaycycle.cpp @@ -146,6 +146,25 @@ LLSD LLWLDayCycle::asLLSD() return day_data; } +bool LLWLDayCycle::getSkyRefs(std::map<LLWLParamKey, LLWLParamSet>& refs) +{ + bool result = true; + LLWLParamManager& wl_mgr = LLWLParamManager::instance(); + + refs.clear(); + for (std::map<F32, LLWLParamKey>::iterator iter = mTimeMap.begin(); iter != mTimeMap.end(); ++iter) + { + LLWLParamKey& key = iter->second; + if (!wl_mgr.getParamSet(key, refs[key])) + { + llwarns << "Cannot find sky [" << key.name << "] referenced by a day cycle" << llendl; + result = false; + } + } + + return result; +} + void LLWLDayCycle::clearKeyframes() { lldebugs << "Clearing key frames" << llendl; |