aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs
diff options
context:
space:
mode:
authorMW2007-05-15 21:26:10 +0000
committerMW2007-05-15 21:26:10 +0000
commit7f2fdb80546d5c567d3a3028b1eb29ba4da7cea9 (patch)
tree0fec7900eda4aff8962fd7bddb2820bf056f7fb9 /OpenSim.Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs
parentfixed part of the bug from 116 (should no longer get the repeated Failed with... (diff)
downloadopensim-SC_OLD-7f2fdb80546d5c567d3a3028b1eb29ba4da7cea9.zip
opensim-SC_OLD-7f2fdb80546d5c567d3a3028b1eb29ba4da7cea9.tar.gz
opensim-SC_OLD-7f2fdb80546d5c567d3a3028b1eb29ba4da7cea9.tar.bz2
opensim-SC_OLD-7f2fdb80546d5c567d3a3028b1eb29ba4da7cea9.tar.xz
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)
Diffstat (limited to '')
-rw-r--r--OpenSim.Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/OpenSim.Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs b/OpenSim.Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs
index d4515ca..ea2bd9b 100644
--- a/OpenSim.Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs
+++ b/OpenSim.Physics/BasicPhysicsPlugin/BasicPhysicsPlugin.cs
@@ -84,7 +84,17 @@ namespace OpenSim.Physics.BasicPhysicsPlugin
84 _actors.Add(act); 84 _actors.Add(act);
85 return act; 85 return act;
86 } 86 }
87 87
88 public override void RemoveAvatar(PhysicsActor actor)
89 {
90 BasicActor act = (BasicActor)actor;
91 if(_actors.Contains(act))
92 {
93 _actors.Remove(act);
94 }
95
96 }
97
88 public override PhysicsActor AddPrim(PhysicsVector position, PhysicsVector size) 98 public override PhysicsActor AddPrim(PhysicsVector position, PhysicsVector size)
89 { 99 {
90 return null; 100 return null;