diff options
author | Justin Clark-Casey (justincc) | 2011-10-25 22:28:40 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-10-25 22:28:40 +0100 |
commit | b9f106f484e3b80c4572f10e81c20da254b5cbae (patch) | |
tree | a27925cbfcfec362926d508804ea178f75de122c /OpenSim/Region/Physics/Manager | |
parent | For ScenePresence collision events, instead of creating a new CollisionEvents... (diff) | |
download | opensim-SC-b9f106f484e3b80c4572f10e81c20da254b5cbae.zip opensim-SC-b9f106f484e3b80c4572f10e81c20da254b5cbae.tar.gz opensim-SC-b9f106f484e3b80c4572f10e81c20da254b5cbae.tar.bz2 opensim-SC-b9f106f484e3b80c4572f10e81c20da254b5cbae.tar.xz |
When sending object collision updates, don't null out and recreate the CollisionEventUpdate() if the number of collisions falls to zero. Reuse the existing one instead.
Diffstat (limited to 'OpenSim/Region/Physics/Manager')
-rw-r--r-- | OpenSim/Region/Physics/Manager/PhysicsActor.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/Manager/PhysicsActor.cs b/OpenSim/Region/Physics/Manager/PhysicsActor.cs index 1659ebd..44af636 100644 --- a/OpenSim/Region/Physics/Manager/PhysicsActor.cs +++ b/OpenSim/Region/Physics/Manager/PhysicsActor.cs | |||
@@ -70,6 +70,11 @@ namespace OpenSim.Region.Physics.Manager | |||
70 | { | 70 | { |
71 | // Raising the event on the object, so don't need to provide location.. further up the tree knows that info. | 71 | // Raising the event on the object, so don't need to provide location.. further up the tree knows that info. |
72 | 72 | ||
73 | /// <summary> | ||
74 | /// Number of collision events in this update. | ||
75 | /// </summary> | ||
76 | public int Count { get { return m_objCollisionList.Count; } } | ||
77 | |||
73 | public int m_colliderType; | 78 | public int m_colliderType; |
74 | public int m_GenericStartEnd; | 79 | public int m_GenericStartEnd; |
75 | //public uint m_LocalID; | 80 | //public uint m_LocalID; |