aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules
diff options
context:
space:
mode:
authorMW2008-02-08 15:07:29 +0000
committerMW2008-02-08 15:07:29 +0000
commit5a630471445f3ed2791980af100de83a620d9e7d (patch)
treef1cb5277957c17036649cbd180a91c0478b68bf1 /OpenSim/Region/Environment/Modules
parent* Removed a statement that crashes the Meshmerizer if you don't have a specif... (diff)
downloadopensim-SC-5a630471445f3ed2791980af100de83a620d9e7d.zip
opensim-SC-5a630471445f3ed2791980af100de83a620d9e7d.tar.gz
opensim-SC-5a630471445f3ed2791980af100de83a620d9e7d.tar.bz2
opensim-SC-5a630471445f3ed2791980af100de83a620d9e7d.tar.xz
small bit of refactoring,
Diffstat (limited to 'OpenSim/Region/Environment/Modules')
-rw-r--r--OpenSim/Region/Environment/Modules/AvatarFactoryModule.cs13
1 files changed, 9 insertions, 4 deletions
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
170 avatAppearance.Wearables[wear.Type].AssetID = assetId; 170 avatAppearance.Wearables[wear.Type].AssetID = assetId;
171 avatAppearance.Wearables[wear.Type].ItemID = wear.ItemID; 171 avatAppearance.Wearables[wear.Type].ItemID = wear.ItemID;
172 172
173 if (m_enablePersist) 173 UpdateDatabase(clientView.AgentId, avatAppearance);
174 {
175 m_appearanceMapper.Update(clientView.AgentId.UUID, avatAppearance);
176 }
177 } 174 }
178 } 175 }
179 } 176 }
@@ -182,6 +179,14 @@ namespace OpenSim.Region.Environment.Modules
182 } 179 }
183 } 180 }
184 181
182 public void UpdateDatabase(LLUUID userID, AvatarAppearance avatAppearance)
183 {
184 if (m_enablePersist)
185 {
186 m_appearanceMapper.Update(userID.UUID, avatAppearance);
187 }
188 }
189
185 public static void GetDefaultAvatarAppearance(out AvatarWearable[] wearables, out byte[] visualParams) 190 public static void GetDefaultAvatarAppearance(out AvatarWearable[] wearables, out byte[] visualParams)
186 { 191 {
187 visualParams = GetDefaultVisualParams(); 192 visualParams = GetDefaultVisualParams();