mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
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:
@@ -72,6 +72,10 @@ namespace OpenSim.world
|
||||
{
|
||||
this._physActor = value;
|
||||
}
|
||||
get
|
||||
{
|
||||
return _physActor;
|
||||
}
|
||||
}
|
||||
|
||||
public override void addForces()
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user