From 5a630471445f3ed2791980af100de83a620d9e7d Mon Sep 17 00:00:00 2001 From: MW Date: Fri, 8 Feb 2008 15:07:29 +0000 Subject: small bit of refactoring, --- OpenSim/Region/Environment/Modules/AvatarFactoryModule.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/Environment/Modules') diff --git a/OpenSim/Region/Environment/Modules/AvatarFactoryModule.cs b/OpenSim/Region/Environment/Modules/AvatarFactoryModule.cs index 19ebdb8..0dafdc3 100644 --- a/OpenSim/Region/Environment/Modules/AvatarFactoryModule.cs +++ b/OpenSim/Region/Environment/Modules/AvatarFactoryModule.cs @@ -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(); -- cgit v1.1