summaryrefslogtreecommitdiff
path: root/indra/newview/llsettingsbase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llsettingsbase.cpp')
-rw-r--r--indra/newview/llsettingsbase.cpp24
1 files changed, 15 insertions, 9 deletions
diff --git a/indra/newview/llsettingsbase.cpp b/indra/newview/llsettingsbase.cpp
index 1f155776bf..a2e705d1fa 100644
--- a/indra/newview/llsettingsbase.cpp
+++ b/indra/newview/llsettingsbase.cpp
@@ -33,12 +33,17 @@
#include "llsdserialize.h"
+//=========================================================================
namespace
{
const F32 BREAK_POINT = 0.5;
}
//=========================================================================
+const std::string LLSettingsBase::SETTING_ID("id");
+const std::string LLSettingsBase::SETTING_NAME("name");
+
+//=========================================================================
LLSettingsBase::LLSettingsBase():
mSettings(LLSD::emptyMap()),
mDirty(true)
@@ -242,15 +247,16 @@ LLSD LLSettingsBase::cloneSettings() const
LLSettingsBase::ptr_t LLSettingsBase::buildBlend(const ptr_t &begin, const ptr_t &end, F32 blendf)
{
- if (begin->getSettingType() != end->getSettingType())
- {
- LL_WARNS("SETTINGS") << "Attempt to blend settings of different types! " <<
- begin->getSettingType() << "<->" << end->getSettingType() << LL_ENDL;
-
- return LLSettingsBase::ptr_t();
- }
-
- return begin->blend(end, blendf);
+// if (begin->getSettingType() != end->getSettingType())
+// {
+// LL_WARNS("SETTINGS") << "Attempt to blend settings of different types! " <<
+// begin->getSettingType() << "<->" << end->getSettingType() << LL_ENDL;
+//
+// return LLSettingsBase::ptr_t();
+// }
+
+// return begin->blend(end, blendf);
+ return LLSettingsBase::ptr_t();
}
void LLSettingsBase::exportSettings(std::string name) const