mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
minor: reset character collision flags, even if without a Body
This commit is contained in:
@@ -1131,12 +1131,16 @@ namespace OpenSim.Region.PhysicsModule.ubOde
|
||||
{
|
||||
foreach (OdeCharacter chr in _characters)
|
||||
{
|
||||
if (chr == null || chr.Body == IntPtr.Zero || chr.collider == IntPtr.Zero )
|
||||
if (chr == null)
|
||||
continue;
|
||||
|
||||
chr.IsColliding = false;
|
||||
// chr.CollidingGround = false; not done here
|
||||
// chr.CollidingGround = false; not done here
|
||||
chr.CollidingObj = false;
|
||||
|
||||
if(chr.Body == IntPtr.Zero || chr.collider == IntPtr.Zero )
|
||||
continue;
|
||||
|
||||
// do colisions with static space
|
||||
d.SpaceCollide2(chr.collider, StaticSpace, IntPtr.Zero, nearCallback);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user