small bit of refactoring,
parent
3be2e772ec
commit
5a63047144
|
@ -34,5 +34,7 @@ namespace OpenSim.Region.Environment.Interfaces
|
|||
public interface IAvatarFactory : IRegionModule
|
||||
{
|
||||
bool TryGetAvatarAppearance(LLUUID avatarId, out AvatarAppearance appearance);
|
||||
void UpdateDatabase(LLUUID userID, AvatarAppearance avatAppearance);
|
||||
|
||||
}
|
||||
}
|
|
@ -170,10 +170,7 @@ namespace OpenSim.Region.Environment.Modules
|
|||
avatAppearance.Wearables[wear.Type].AssetID = assetId;
|
||||
avatAppearance.Wearables[wear.Type].ItemID = wear.ItemID;
|
||||
|
||||
if (m_enablePersist)
|
||||
{
|
||||
m_appearanceMapper.Update(clientView.AgentId.UUID, avatAppearance);
|
||||
}
|
||||
UpdateDatabase(clientView.AgentId, avatAppearance);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -182,6 +179,14 @@ namespace OpenSim.Region.Environment.Modules
|
|||
}
|
||||
}
|
||||
|
||||
public void UpdateDatabase(LLUUID userID, AvatarAppearance avatAppearance)
|
||||
{
|
||||
if (m_enablePersist)
|
||||
{
|
||||
m_appearanceMapper.Update(userID.UUID, avatAppearance);
|
||||
}
|
||||
}
|
||||
|
||||
public static void GetDefaultAvatarAppearance(out AvatarWearable[] wearables, out byte[] visualParams)
|
||||
{
|
||||
visualParams = GetDefaultVisualParams();
|
||||
|
|
Loading…
Reference in New Issue