aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/Manager/PhysicsActor.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-10-25 22:28:40 +0100
committerJustin Clark-Casey (justincc)2011-10-25 22:28:40 +0100
commitb9f106f484e3b80c4572f10e81c20da254b5cbae (patch)
treea27925cbfcfec362926d508804ea178f75de122c /OpenSim/Region/Physics/Manager/PhysicsActor.cs
parentFor ScenePresence collision events, instead of creating a new CollisionEvents... (diff)
downloadopensim-SC_OLD-b9f106f484e3b80c4572f10e81c20da254b5cbae.zip
opensim-SC_OLD-b9f106f484e3b80c4572f10e81c20da254b5cbae.tar.gz
opensim-SC_OLD-b9f106f484e3b80c4572f10e81c20da254b5cbae.tar.bz2
opensim-SC_OLD-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/PhysicsActor.cs')
-rw-r--r--OpenSim/Region/Physics/Manager/PhysicsActor.cs5
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;