More cleaning up when deleting regions from a instance. NOTE: IGridServices.DeregisterRegion() method needs implementing for grid mode.

This commit is contained in:
MW
2007-11-16 13:39:11 +00:00
parent 76a67f45c6
commit 483377adae
8 changed files with 29 additions and 17 deletions

View File

@@ -36,6 +36,10 @@ using OpenSim.Region.Environment.Scenes;
namespace OpenSim.Region.Environment.Modules
{
//this is first attempt to start breaking the mess thats called the assetcache up.
// basically this should be the texture sending (to clients) code moved out of assetcache
//and some small clean up
// but on first tests it didn't seem to work very well so is currently not in use.
public class TextureDownloadModule : IRegionModule
{
private Scene m_scene;

View File

@@ -43,7 +43,7 @@ namespace OpenSim.Region.Environment.Scenes
regionCommsHost.OnExpectUser -= NewUserConnection;
regionCommsHost.OnAvatarCrossingIntoRegion -= AgentCrossing;
regionCommsHost.OnCloseAgentConnection -= CloseConnection;
//regionCommsHost.RemoveRegion(m_regionInfo); //TODO add to method to commsManager
m_commsProvider.GridService.DeregisterRegion(m_regionInfo);
regionCommsHost = null;
}

View File

@@ -674,6 +674,7 @@ namespace OpenSim.Region.Environment.Scenes
SendAnimPack(Animations.AnimsLLUUID["SIT"], 1);
SendFullUpdateToAllClients();
}
public void HandleSetAlwaysRun(IClientAPI remoteClient, bool SetAlwaysRun)
{
m_setAlwaysRun = SetAlwaysRun;
@@ -683,6 +684,7 @@ namespace OpenSim.Region.Environment.Scenes
}
}
protected void UpdateMovementAnimations(bool update_movementflag)
{
if (update_movementflag)