aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvoavatar.cpp
diff options
context:
space:
mode:
authorArmin Weatherwax2011-03-25 10:34:33 +0100
committerArmin Weatherwax2011-03-25 10:34:33 +0100
commit81d54f08b07f4c0853e914536ef643661713cc65 (patch)
tree873fa86ecdd69ce953d6fd6aa7614244c9f22931 /linden/indra/newview/llvoavatar.cpp
parentDon't try to fetch grid list from empty url in GridUpdateList (diff)
downloadmeta-impy-81d54f08b07f4c0853e914536ef643661713cc65.zip
meta-impy-81d54f08b07f4c0853e914536ef643661713cc65.tar.gz
meta-impy-81d54f08b07f4c0853e914536ef643661713cc65.tar.bz2
meta-impy-81d54f08b07f4c0853e914536ef643661713cc65.tar.xz
cleaned up particle system llsd de/serialization; improvements to the avatar cloud
* llsd now uses camel case for each key, confusion of particle max age vs source max age fixed * cloud.xml is now loaded with a fallback chain PER_SL_ACCOUNT -> USER_SETTINGS -> APP_SETTINGS so that customized clouds can exist per account or for all users and survive updates
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llvoavatar.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/linden/indra/newview/llvoavatar.cpp b/linden/indra/newview/llvoavatar.cpp
index 204357f..c0ddac5 100644
--- a/linden/indra/newview/llvoavatar.cpp
+++ b/linden/indra/newview/llvoavatar.cpp
@@ -1496,8 +1496,16 @@ LLPartSysData LLVOAvatar::sCloud;
1496void LLVOAvatar::initCloud() 1496void LLVOAvatar::initCloud()
1497{ 1497{
1498 // fancy particle cloud designed by Brent 1498 // fancy particle cloud designed by Brent
1499 std::string filename = gDirUtilp->getExpandedFilename(LL_PATH_PER_SL_ACCOUNT, "cloud.xml");
1500 if(!gDirUtilp->fileExists(filename))
1501 {
1502 filename = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, "cloud.xml");
1503 }
1504 if(!gDirUtilp->fileExists(filename))
1505 {
1506 filename = gDirUtilp->getExpandedFilename(LL_PATH_APP_SETTINGS, "cloud.xml");
1507 }
1499 1508
1500 std::string filename = gDirUtilp->getExpandedFilename(LL_PATH_APP_SETTINGS, "cloud.xml");
1501 LLSD cloud; 1509 LLSD cloud;
1502 llifstream in_file(filename); 1510 llifstream in_file(filename);
1503 LLSDSerialize::fromXMLDocument(cloud, in_file); 1511 LLSDSerialize::fromXMLDocument(cloud, in_file);