From 2617714f3436fdd7ec81ad3ceb58416b105a7664 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Tue, 3 Apr 2012 06:41:06 +1000 Subject: One more water notecard refactor. --- linden/indra/newview/llfloaterwater.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'linden') diff --git a/linden/indra/newview/llfloaterwater.cpp b/linden/indra/newview/llfloaterwater.cpp index 1101a10..cbf62e1 100644 --- a/linden/indra/newview/llfloaterwater.cpp +++ b/linden/indra/newview/llfloaterwater.cpp @@ -62,6 +62,7 @@ #include "llwaterparamset.h" #include "llwaterparammanager.h" +#include "llwlparammanager.h" #include "llpostprocess.h" #include "wlfloaterwindlightsend.h" @@ -662,7 +663,7 @@ void LLFloaterWater::onSavePreset(LLUICtrl* ctrl, void* userData) { // Make sure we have a ".ww" extension. std::string name = comboBox->getSelectedItemLabel(); - if(name.length() > 2 && name.compare(name.length() - 3, 3, ".ww") != 0) + if(!LLWLParamManager::isWaterSettingsNotecard(name)) { name += ".ww"; } -- cgit v1.1