Added RemoveAvatar() method to physics plugins, should be called on log out (needs doing) and when downgrading a client to a child-avatar (should be working)

This commit is contained in:
MW
2007-05-15 21:26:10 +00:00
parent ccf046e8e2
commit 7f2fdb8054
6 changed files with 36 additions and 1 deletions

View File

@@ -72,6 +72,10 @@ namespace OpenSim.world
{
this._physActor = value;
}
get
{
return _physActor;
}
}
public override void addForces()

View File

@@ -600,6 +600,10 @@ namespace OpenSim.world
{
Avatars.Remove(agentClient.AgentID);
}
if (agentClient.ClientAvatar.PhysActor != null)
{
this.phyScene.RemoveAvatar(agentClient.ClientAvatar.PhysActor);
}
}
catch (Exception e)
{