From 89f35779b4b3e20d8aa233a01c2a3aa89832d80f Mon Sep 17 00:00:00 2001 From: TighMacFanatic Date: Mon, 20 Feb 2012 16:37:34 -0500 Subject: [PATCH] Fixed Windlight presets not loading user created files. --- indra/newview/llfloaterwindlight.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/indra/newview/llfloaterwindlight.cpp b/indra/newview/llfloaterwindlight.cpp index 5d69cc246..e2c96db76 100644 --- a/indra/newview/llfloaterwindlight.cpp +++ b/indra/newview/llfloaterwindlight.cpp @@ -1070,5 +1070,13 @@ void LLFloaterWindLight::populateSkyPresetsList() mSkyPresetCombo->add(*it); } + LLWLParamManager::preset_name_list_t user_presets; + LLWLParamManager::getInstance()->getUserPresetNames(user_presets); + + for (LLWLParamManager::preset_name_list_t::const_iterator it = user_presets.begin(); it != user_presets.end(); ++it) + { + mSkyPresetCombo->add(*it); + } + mSkyPresetCombo->selectByValue(LLEnvManagerNew::instance().getSkyPresetName()); }