aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
authorMelanie2011-10-25 03:16:47 +0100
committerMelanie2011-10-25 03:16:47 +0100
commit04678836c32d8d639503fb762b46ff499366bd8c (patch)
treee6163a94be920589a7f89f96b8491b6b64c25938 /OpenSim/Region/Framework
parentMerge commit '601dabb1b73a894e4f2f61abe6e9053d380008cd' into bigmerge (diff)
parentRenamed and rearranged AvatarFactoryModule to eliminate redundant lookups of ... (diff)
downloadopensim-SC-04678836c32d8d639503fb762b46ff499366bd8c.zip
opensim-SC-04678836c32d8d639503fb762b46ff499366bd8c.tar.gz
opensim-SC-04678836c32d8d639503fb762b46ff499366bd8c.tar.bz2
opensim-SC-04678836c32d8d639503fb762b46ff499366bd8c.tar.xz
Merge commit 'da794f34a56f7c88904315ae538de8f3790e6891' into bigmerge
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r--OpenSim/Region/Framework/Interfaces/IAvatarFactoryModule.cs (renamed from OpenSim/Region/Framework/Interfaces/IAvatarFactory.cs)9
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs6
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs2
3 files changed, 10 insertions, 7 deletions
diff --git a/OpenSim/Region/Framework/Interfaces/IAvatarFactory.cs b/OpenSim/Region/Framework/Interfaces/IAvatarFactoryModule.cs
index 4dbddf4..98228e4 100644
--- a/OpenSim/Region/Framework/Interfaces/IAvatarFactory.cs
+++ b/OpenSim/Region/Framework/Interfaces/IAvatarFactoryModule.cs
@@ -31,8 +31,11 @@ using OpenSim.Framework;
31 31
32namespace OpenSim.Region.Framework.Interfaces 32namespace OpenSim.Region.Framework.Interfaces
33{ 33{
34 public interface IAvatarFactory 34 public interface IAvatarFactoryModule
35 { 35 {
36
37 void SetAppearance(IScenePresence sp, Primitive.TextureEntry textureEntry, byte[] visualParams);
38
36 /// <summary> 39 /// <summary>
37 /// Send the appearance of an avatar to others in the scene. 40 /// Send the appearance of an avatar to others in the scene.
38 /// </summary> 41 /// </summary>
@@ -57,7 +60,7 @@ namespace OpenSim.Region.Framework.Interfaces
57 /// <returns>true if a valid agent was found, false otherwise</returns> 60 /// <returns>true if a valid agent was found, false otherwise</returns>
58 bool SaveBakedTextures(UUID agentId); 61 bool SaveBakedTextures(UUID agentId);
59 62
60 bool ValidateBakedTextureCache(IClientAPI client); 63 bool ValidateBakedTextureCache(IScenePresence sp);
61 void QueueAppearanceSend(UUID agentid); 64 void QueueAppearanceSend(UUID agentid);
62 void QueueAppearanceSave(UUID agentid); 65 void QueueAppearanceSave(UUID agentid);
63 } 66 }
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 53c9366..aa0b47a 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -138,7 +138,7 @@ namespace OpenSim.Region.Framework.Scenes
138 138
139 protected IXMLRPC m_xmlrpcModule; 139 protected IXMLRPC m_xmlrpcModule;
140 protected IWorldComm m_worldCommModule; 140 protected IWorldComm m_worldCommModule;
141 protected IAvatarFactory m_AvatarFactory; 141 protected IAvatarFactoryModule m_AvatarFactory;
142 protected IConfigSource m_config; 142 protected IConfigSource m_config;
143 protected IRegionSerialiserModule m_serialiser; 143 protected IRegionSerialiserModule m_serialiser;
144 protected IDialogModule m_dialogModule; 144 protected IDialogModule m_dialogModule;
@@ -463,7 +463,7 @@ namespace OpenSim.Region.Framework.Scenes
463 463
464 public IAttachmentsModule AttachmentsModule { get; set; } 464 public IAttachmentsModule AttachmentsModule { get; set; }
465 465
466 public IAvatarFactory AvatarFactory 466 public IAvatarFactoryModule AvatarFactory
467 { 467 {
468 get { return m_AvatarFactory; } 468 get { return m_AvatarFactory; }
469 } 469 }
@@ -1183,7 +1183,7 @@ namespace OpenSim.Region.Framework.Scenes
1183 m_xmlrpcModule = RequestModuleInterface<IXMLRPC>(); 1183 m_xmlrpcModule = RequestModuleInterface<IXMLRPC>();
1184 m_worldCommModule = RequestModuleInterface<IWorldComm>(); 1184 m_worldCommModule = RequestModuleInterface<IWorldComm>();
1185 XferManager = RequestModuleInterface<IXfer>(); 1185 XferManager = RequestModuleInterface<IXfer>();
1186 m_AvatarFactory = RequestModuleInterface<IAvatarFactory>(); 1186 m_AvatarFactory = RequestModuleInterface<IAvatarFactoryModule>();
1187 AttachmentsModule = RequestModuleInterface<IAttachmentsModule>(); 1187 AttachmentsModule = RequestModuleInterface<IAttachmentsModule>();
1188 m_serialiser = RequestModuleInterface<IRegionSerialiserModule>(); 1188 m_serialiser = RequestModuleInterface<IRegionSerialiserModule>();
1189 m_dialogModule = RequestModuleInterface<IDialogModule>(); 1189 m_dialogModule = RequestModuleInterface<IDialogModule>();
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 941765d..02bceb9 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -2890,7 +2890,7 @@ namespace OpenSim.Region.Framework.Scenes
2890 // We have an appearance but we may not have the baked textures. Check the asset cache 2890 // We have an appearance but we may not have the baked textures. Check the asset cache
2891 // to see if all the baked textures are already here. 2891 // to see if all the baked textures are already here.
2892 if (m_scene.AvatarFactory != null) 2892 if (m_scene.AvatarFactory != null)
2893 cachedappearance = m_scene.AvatarFactory.ValidateBakedTextureCache(ControllingClient); 2893 cachedappearance = m_scene.AvatarFactory.ValidateBakedTextureCache(this);
2894 2894
2895 // If we aren't using a cached appearance, then clear out the baked textures 2895 // If we aren't using a cached appearance, then clear out the baked textures
2896 if (!cachedappearance) 2896 if (!cachedappearance)