From a9347b6ceb194a352ad2a5796e7ed7e8fc598c26 Mon Sep 17 00:00:00 2001 From: MW Date: Sat, 28 Jun 2008 17:43:20 +0000 Subject: Extracted the Avatar appearance functions out of the IUserService interface and moved them into a IAvatarService Although "out of the box", there is no actual functional change to behavior --- OpenSim/Region/Communications/Local/CommunicationsLocal.cs | 1 + OpenSim/Region/Communications/OGS1/CommunicationsOGS1.cs | 1 + OpenSim/Region/Environment/Scenes/ScenePresence.cs | 4 ++-- OpenSim/Region/Modules/AvatarFactory/AvatarFactoryModule.cs | 6 +++--- 4 files changed, 7 insertions(+), 5 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Communications/Local/CommunicationsLocal.cs b/OpenSim/Region/Communications/Local/CommunicationsLocal.cs index 2065006..5fd5524 100644 --- a/OpenSim/Region/Communications/Local/CommunicationsLocal.cs +++ b/OpenSim/Region/Communications/Local/CommunicationsLocal.cs @@ -47,6 +47,7 @@ namespace OpenSim.Region.Communications.Local AddInventoryService( inventoryService); m_defaultInventoryHost = inventoryService.Host; m_userService = userService; + m_avatarService = (IAvatarService)userService; m_gridService = gridService; m_interRegion = interRegionService; } diff --git a/OpenSim/Region/Communications/OGS1/CommunicationsOGS1.cs b/OpenSim/Region/Communications/OGS1/CommunicationsOGS1.cs index b85654d..f2e76f2 100644 --- a/OpenSim/Region/Communications/OGS1/CommunicationsOGS1.cs +++ b/OpenSim/Region/Communications/OGS1/CommunicationsOGS1.cs @@ -46,6 +46,7 @@ namespace OpenSim.Region.Communications.OGS1 m_defaultInventoryHost = invService.Host; m_userService = new OGS1UserServices(this); + m_avatarService = (IAvatarService)m_userService; } public override void AddInventoryService(string hostUrl) diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index 7ba096b..3a966f4 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs @@ -1661,7 +1661,7 @@ namespace OpenSim.Region.Environment.Scenes m_log.Info("[APPEARANCE] Setting Appearance"); m_appearance.SetAppearance(texture, visualParam); SetHeight(m_appearance.AvatarHeight); - m_scene.CommsManager.UserService.UpdateUserAppearance(m_controllingClient.AgentId, m_appearance); + m_scene.CommsManager.AvatarService.UpdateUserAppearance(m_controllingClient.AgentId, m_appearance); SendAppearanceToAllOtherAgents(); SendOwnAppearance(); @@ -1671,7 +1671,7 @@ namespace OpenSim.Region.Environment.Scenes { m_log.Info("[APPEARANCE] Setting Wearable"); m_appearance.SetWearable(wearableId, wearable); - m_scene.CommsManager.UserService.UpdateUserAppearance(m_controllingClient.AgentId, m_appearance); + m_scene.CommsManager.AvatarService.UpdateUserAppearance(m_controllingClient.AgentId, m_appearance); m_controllingClient.SendWearables(m_appearance.Wearables, m_appearance.Serial++); } diff --git a/OpenSim/Region/Modules/AvatarFactory/AvatarFactoryModule.cs b/OpenSim/Region/Modules/AvatarFactory/AvatarFactoryModule.cs index 43b492a..671b854 100644 --- a/OpenSim/Region/Modules/AvatarFactory/AvatarFactoryModule.cs +++ b/OpenSim/Region/Modules/AvatarFactory/AvatarFactoryModule.cs @@ -54,7 +54,7 @@ namespace OpenSim.Region.Modules.AvatarFactory //if ((profile != null) && (profile.RootFolder != null)) if (profile != null) { - appearance = m_scene.CommsManager.UserService.GetUserAppearance(avatarId); + appearance = m_scene.CommsManager.AvatarService.GetUserAppearance(avatarId); if (appearance != null) { //SetAppearanceAssets(profile, ref appearance); @@ -185,7 +185,7 @@ namespace OpenSim.Region.Modules.AvatarFactory } SetAppearanceAssets(profile, ref avatAppearance); - m_scene.CommsManager.UserService.UpdateUserAppearance(clientView.AgentId, avatAppearance); + m_scene.CommsManager.AvatarService.UpdateUserAppearance(clientView.AgentId, avatAppearance); avatar.Appearance = avatAppearance; } else @@ -203,7 +203,7 @@ namespace OpenSim.Region.Modules.AvatarFactory public void UpdateDatabase(LLUUID user, AvatarAppearance appearance) { - m_scene.CommsManager.UserService.UpdateUserAppearance(user, appearance); + m_scene.CommsManager.AvatarService.UpdateUserAppearance(user, appearance); } private static byte[] GetDefaultVisualParams() -- cgit v1.1