mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
oops bug fix
This commit is contained in:
@@ -1872,7 +1872,6 @@ namespace OpenSim.Region.PhysicsModule.ubOde
|
||||
if (NewStatus)
|
||||
{
|
||||
AvatarGeomAndBodyDestroy();
|
||||
|
||||
AvatarGeomAndBodyCreate();
|
||||
|
||||
m_parent_scene.actor_name_map[collider] = this;
|
||||
@@ -1882,7 +1881,6 @@ namespace OpenSim.Region.PhysicsModule.ubOde
|
||||
{
|
||||
m_parent_scene.RemoveCollisionEventReporting(this);
|
||||
m_parent_scene.RemoveCharacter(this);
|
||||
|
||||
// destroy avatar capsule and related ODE data
|
||||
AvatarGeomAndBodyDestroy();
|
||||
}
|
||||
|
||||
@@ -1286,7 +1286,10 @@ namespace OpenSim.Region.PhysicsModule.ubOde
|
||||
{
|
||||
int last = _charactersList.Count - 1;
|
||||
if(chr._charsListIndex != last)
|
||||
{
|
||||
_charactersList[chr._charsListIndex] = _charactersList[last];
|
||||
_charactersList[chr._charsListIndex]._charsListIndex = chr._charsListIndex;
|
||||
}
|
||||
_charactersList.RemoveAt(last);
|
||||
chr._charsListIndex = -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user