diff options
author | Melanie | 2011-10-26 17:55:53 +0200 |
---|---|---|
committer | Melanie | 2011-10-26 17:55:53 +0200 |
commit | c763419043773c93dbbc865ec35f7ecf856a641a (patch) | |
tree | ac9f99c33ae788e6b7fdfd0843c2ae584a896dc6 /OpenSim/Region/Framework | |
parent | Fix a missing locking call (diff) | |
parent | Merge branch 'master' into bigmerge (diff) | |
download | opensim-SC-c763419043773c93dbbc865ec35f7ecf856a641a.zip opensim-SC-c763419043773c93dbbc865ec35f7ecf856a641a.tar.gz opensim-SC-c763419043773c93dbbc865ec35f7ecf856a641a.tar.bz2 opensim-SC-c763419043773c93dbbc865ec35f7ecf856a641a.tar.xz |
Merge branch 'bigmerge' of ssh://3dhosting.de/var/git/careminster into bigmerge
Diffstat (limited to 'OpenSim/Region/Framework')
4 files changed, 8 insertions, 12 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 8c7ce24..b2f5279 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -1203,7 +1203,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1203 | { | 1203 | { |
1204 | m_log.ErrorFormat("[SCENE]: Restarting heartbeat thread because it hasn't reported in in region {0}", RegionInfo.RegionName); | 1204 | m_log.ErrorFormat("[SCENE]: Restarting heartbeat thread because it hasn't reported in in region {0}", RegionInfo.RegionName); |
1205 | HeartbeatThread.Abort(); | 1205 | HeartbeatThread.Abort(); |
1206 | Watchdog.RemoveThread(HeartbeatThread.ManagedThreadId); | 1206 | Watchdog.AbortThread(HeartbeatThread.ManagedThreadId); |
1207 | HeartbeatThread = null; | 1207 | HeartbeatThread = null; |
1208 | } | 1208 | } |
1209 | m_lastUpdate = Util.EnvironmentTickCount(); | 1209 | m_lastUpdate = Util.EnvironmentTickCount(); |
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index c1097e4..6e20d14 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -2137,10 +2137,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
2137 | public void PhysicsCollision(EventArgs e) | 2137 | public void PhysicsCollision(EventArgs e) |
2138 | { | 2138 | { |
2139 | // single threaded here | 2139 | // single threaded here |
2140 | if (e == null) | ||
2141 | { | ||
2142 | return; | ||
2143 | } | ||
2144 | 2140 | ||
2145 | CollisionEventUpdate a = (CollisionEventUpdate)e; | 2141 | CollisionEventUpdate a = (CollisionEventUpdate)e; |
2146 | Dictionary<uint, ContactPoint> collissionswith = a.m_objCollisionList; | 2142 | Dictionary<uint, ContactPoint> collissionswith = a.m_objCollisionList; |
@@ -2302,6 +2298,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2302 | }); | 2298 | }); |
2303 | } | 2299 | } |
2304 | } | 2300 | } |
2301 | |||
2305 | if (colliding.Count > 0) | 2302 | if (colliding.Count > 0) |
2306 | { | 2303 | { |
2307 | StartCollidingMessage.Colliders = colliding; | 2304 | StartCollidingMessage.Colliders = colliding; |
@@ -2309,10 +2306,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
2309 | if (m_parentGroup.Scene == null) | 2306 | if (m_parentGroup.Scene == null) |
2310 | return; | 2307 | return; |
2311 | 2308 | ||
2312 | if (m_parentGroup.PassCollision == true) | 2309 | // if (m_parentGroup.PassCollision == true) |
2313 | { | 2310 | // { |
2314 | //TODO: Add pass to root prim! | 2311 | // //TODO: Add pass to root prim! |
2315 | } | 2312 | // } |
2313 | |||
2316 | m_parentGroup.Scene.EventManager.TriggerScriptCollidingStart(LocalId, StartCollidingMessage); | 2314 | m_parentGroup.Scene.EventManager.TriggerScriptCollidingStart(LocalId, StartCollidingMessage); |
2317 | } | 2315 | } |
2318 | } | 2316 | } |
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 9970763..0f13050 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -3649,9 +3649,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
3649 | // Event called by the physics plugin to tell the avatar about a collision. | 3649 | // Event called by the physics plugin to tell the avatar about a collision. |
3650 | private void PhysicsCollisionUpdate(EventArgs e) | 3650 | private void PhysicsCollisionUpdate(EventArgs e) |
3651 | { | 3651 | { |
3652 | if (e == null) | ||
3653 | return; | ||
3654 | |||
3655 | //if ((Math.Abs(Velocity.X) > 0.1e-9f) || (Math.Abs(Velocity.Y) > 0.1e-9f)) | 3652 | //if ((Math.Abs(Velocity.X) > 0.1e-9f) || (Math.Abs(Velocity.Y) > 0.1e-9f)) |
3656 | // The Physics Scene will send updates every 500 ms grep: PhysicsActor.SubscribeEvents( | 3653 | // The Physics Scene will send updates every 500 ms grep: PhysicsActor.SubscribeEvents( |
3657 | // as of this comment the interval is set in AddToPhysicalScene | 3654 | // as of this comment the interval is set in AddToPhysicalScene |
diff --git a/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTeleportTests.cs b/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTeleportTests.cs index 39bb43a..c5a76b2 100644 --- a/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTeleportTests.cs +++ b/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceTeleportTests.cs | |||
@@ -32,6 +32,7 @@ using NUnit.Framework; | |||
32 | using OpenMetaverse; | 32 | using OpenMetaverse; |
33 | using OpenSim.Framework; | 33 | using OpenSim.Framework; |
34 | using OpenSim.Framework.Communications; | 34 | using OpenSim.Framework.Communications; |
35 | using OpenSim.Framework.Servers; | ||
35 | using OpenSim.Region.Framework.Interfaces; | 36 | using OpenSim.Region.Framework.Interfaces; |
36 | using OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation; | 37 | using OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation; |
37 | using OpenSim.Tests.Common; | 38 | using OpenSim.Tests.Common; |