1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-20 04:09:16 +00:00

Add functions for writing and reading avatar clothing files

This also introduces a filename member in plClothingOutfit so it
can determine whether to read the clothing information from the file
or the vault.
This commit is contained in:
Florian Meißner
2013-12-02 17:34:10 +01:00
parent 7ca81ba626
commit 3dc6f76b7d
4 changed files with 143 additions and 9 deletions

View File

@ -193,8 +193,10 @@ void plAvBrainHuman::Activate(plArmatureModBase *avMod)
if (fAvMod->GetClothingOutfit() && fAvMod->GetClothingOutfit()->fGroup != plClothingMgr::kClothingBaseNoOptions)
{
if (fAvMod->IsLocalAvatar())
fAvMod->GetClothingOutfit()->ReadFromVault();
if (fAvMod->IsLocalAvatar())
{
fAvMod->GetClothingOutfit()->ReadClothing();
}
else
{
fAvMod->GetClothingOutfit()->WearDefaultClothing();