diff options
| author | andreykproductengine <andreykproductengine@lindenlab.com> | 2018-10-30 01:14:21 +0200 |
|---|---|---|
| committer | andreykproductengine <andreykproductengine@lindenlab.com> | 2018-10-30 01:14:21 +0200 |
| commit | 86419eb11be50bf75c9049a80e422d7704dd7d30 (patch) | |
| tree | a546cd79022a1102546f8f1533b4cafa4b9ce92d /indra/llinventory/llsettingsbase.cpp | |
| parent | 2f97660ab7de0154ea3cadb1530b261f93bd31de (diff) | |
SL-1476 EEP Better shader transitions
Diffstat (limited to 'indra/llinventory/llsettingsbase.cpp')
| -rw-r--r-- | indra/llinventory/llsettingsbase.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/llinventory/llsettingsbase.cpp b/indra/llinventory/llsettingsbase.cpp index 80680948b5..4b8be04355 100644 --- a/indra/llinventory/llsettingsbase.cpp +++ b/indra/llinventory/llsettingsbase.cpp @@ -230,6 +230,11 @@ LLSD LLSettingsBase::interpolateSDMap(const LLSD &settings, const LLSD &other, c // Blend against default value newSettings[key_name] = interpolateSDValue(key_name, def_iter->second.getDefaultValue(), (*it).second, defaults, mix, slerps); } + else if ((*it).second.type() == LLSD::TypeMap) + { + // interpolate in case there are defaults inside (part of legacy) + newSettings[key_name] = interpolateSDValue(key_name, LLSDMap(), (*it).second, defaults, mix, slerps); + } // else do nothing when no known defaults // TODO: Should I blend this out instead? } |
