From 5515c45e3b42497f64f8e5846697471b1de952c5 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Tue, 18 Oct 2011 20:56:11 +0100 Subject: minor: method doc to explain a lock of OdeLock --- OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | 2 ++ OpenSim/Region/Physics/OdePlugin/OdeScene.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs index 447304b..1b9378a 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs @@ -2378,6 +2378,8 @@ Console.WriteLine(" JointCreateFixed"); public override void SetVolumeDetect(int param) { + // We have to lock the scene here so that an entire simulate loop either uses volume detect for all + // possible collisions with this prim or for none of them. lock (_parent_scene.OdeLock) { m_isVolumeDetect = (param != 0); diff --git a/OpenSim/Region/Physics/OdePlugin/OdeScene.cs b/OpenSim/Region/Physics/OdePlugin/OdeScene.cs index 03ff6d8..9b503fc 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdeScene.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdeScene.cs @@ -3679,8 +3679,8 @@ Console.WriteLine("AddPhysicsActorTaint to " + taintedprim.Name); { d.GeomSetCategoryBits(WaterGeom, (int)(CollisionCategories.Water)); d.GeomSetCollideBits(WaterGeom, (int)(CollisionCategories.Space)); - } + geom_name_map[WaterGeom] = "Water"; d.Matrix3 R = new d.Matrix3(); -- cgit v1.1