diff options
author | Rider Linden <rider@lindenlab.com> | 2018-05-15 17:17:51 -0700 |
---|---|---|
committer | Rider Linden <rider@lindenlab.com> | 2018-05-15 17:17:51 -0700 |
commit | 3925e37532476c526375fd76143b2b5e1dcce9b9 (patch) | |
tree | 978f583f61b141676fb3b17764ed0091cabca1b1 /indra/llinventory/llsettingswater.cpp | |
parent | 885853b41775296d536f9bcb3614264109430c2b (diff) |
Fix the blend code to record the amount of the blend and to store what is being blended towards.
Diffstat (limited to 'indra/llinventory/llsettingswater.cpp')
-rw-r--r-- | indra/llinventory/llsettingswater.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/llinventory/llsettingswater.cpp b/indra/llinventory/llsettingswater.cpp index a72cbc4136..c6798945a3 100644 --- a/indra/llinventory/llsettingswater.cpp +++ b/indra/llinventory/llsettingswater.cpp @@ -72,12 +72,14 @@ const LLUUID LLSettingsWater::DEFAULT_WATER_NORMAL_ID(DEFAULT_WATER_NORMAL); //========================================================================= LLSettingsWater::LLSettingsWater(const LLSD &data) : - LLSettingsBase(data) + LLSettingsBase(data), + mNextNormalMapID() { } LLSettingsWater::LLSettingsWater() : - LLSettingsBase() + LLSettingsBase(), + mNextNormalMapID() { } @@ -167,6 +169,8 @@ void LLSettingsWater::blend(const LLSettingsBase::ptr_t &end, F64 blendf) LLSD blenddata = interpolateSDMap(mSettings, other->mSettings, blendf); replaceSettings(blenddata); + setBlendFactor(blendf); + mNextNormalMapID = other->getNormalMapID(); } LLSettingsWater::validation_list_t LLSettingsWater::getValidationList() const |