Skip to content
Snippets Groups Projects
Commit c61dcb90 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Only prevent recursive settings file inclusion during initial load

parent 48288a12
No related branches found
No related tags found
No related merge requests found
...@@ -1058,7 +1058,7 @@ U32 LLControlGroup::saveToFile(const std::string& filename, BOOL nondefault_only ...@@ -1058,7 +1058,7 @@ U32 LLControlGroup::saveToFile(const std::string& filename, BOOL nondefault_only
U32 LLControlGroup::loadFromFile(const std::string& filename, bool set_default_values, bool save_values) U32 LLControlGroup::loadFromFile(const std::string& filename, bool set_default_values, bool save_values)
{ {
if (!mIncludedFiles.insert(filename).second) if (!mIncludedFiles.insert(filename).second && set_default_values)
{ {
return 0; //Already included this file. return 0; //Already included this file.
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment