diff options
author | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-07-05 22:52:31 +0300 |
---|---|---|
committer | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-07-05 22:52:31 +0300 |
commit | 02c9c49788c6677a4332246a8d748d3e002c712f (patch) | |
tree | 3242752e3bca0c03000b039350a692ac2f3452b1 /indra/newview/llregioninfomodel.cpp | |
parent | 7aa7ee68387bf9393db023f6961340e8fa247bfb (diff) |
STORM-1330 WIP Override region sun position when switching the region to fixed sky.
Diffstat (limited to 'indra/newview/llregioninfomodel.cpp')
-rw-r--r-- | indra/newview/llregioninfomodel.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/indra/newview/llregioninfomodel.cpp b/indra/newview/llregioninfomodel.cpp index e1ef57f8e9..6238f183c1 100644 --- a/indra/newview/llregioninfomodel.cpp +++ b/indra/newview/llregioninfomodel.cpp @@ -122,6 +122,18 @@ bool LLRegionInfoModel::getUseFixedSun() const return mRegionFlags & REGION_FLAGS_SUN_FIXED; } +void LLRegionInfoModel::setUseFixedSun(bool fixed) +{ + if (fixed) + { + mRegionFlags |= REGION_FLAGS_SUN_FIXED; + } + else + { + mRegionFlags &= ~REGION_FLAGS_SUN_FIXED; + } +} + void LLRegionInfoModel::update(LLMessageSystem* msg) { reset(); @@ -192,8 +204,9 @@ void LLRegionInfoModel::sendEstateOwnerMessage( { std::vector<std::string>::const_iterator it = strings.begin(); std::vector<std::string>::const_iterator end = strings.end(); - for (; it != end; ++it) + for (unsigned i = 0; it != end; ++it, ++i) { + lldebugs << "- [" << i << "] " << (*it) << llendl; msg->nextBlock("ParamList"); msg->addString("Parameter", *it); } |