mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 08:06:27 +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:
@@ -84,7 +84,17 @@ namespace OpenSim.Physics.BasicPhysicsPlugin
|
||||
_actors.Add(act);
|
||||
return act;
|
||||
}
|
||||
|
||||
|
||||
public override void RemoveAvatar(PhysicsActor actor)
|
||||
{
|
||||
BasicActor act = (BasicActor)actor;
|
||||
if(_actors.Contains(act))
|
||||
{
|
||||
_actors.Remove(act);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public override PhysicsActor AddPrim(PhysicsVector position, PhysicsVector size)
|
||||
{
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user