Code Clean up
This commit is contained in:
@@ -375,19 +375,16 @@ LLPostProcess::LLPostProcess(void) :
|
||||
|
||||
LLSD& defaults = mAllEffectInfo["Default"];
|
||||
|
||||
for(std::list<LLPointer<LLPostProcessShader> >::iterator it=mShaders.begin();it!=mShaders.end();++it)
|
||||
// Add defaults for all missing effects
|
||||
for(auto& shader : mShaders)
|
||||
{
|
||||
LLSD shader_defaults = (*it)->getDefaults();
|
||||
const LLSD shader_defaults = shader->getDefaults();
|
||||
for (LLSD::map_const_iterator it2 = defaults.beginMap();it2 != defaults.endMap();++it2)
|
||||
{
|
||||
if(!defaults.has(it2->first))
|
||||
defaults[it2->first]=it2->second;
|
||||
}
|
||||
}
|
||||
for(std::list<LLPointer<LLPostProcessShader> >::iterator it=mShaders.begin();it!=mShaders.end();++it)
|
||||
{
|
||||
(*it)->loadSettings(defaults);
|
||||
}
|
||||
setSelectedEffect("Default");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user