diff options
Diffstat (limited to 'OpenSim/Region/Physics/OdePlugin/ODEPrim.cs')
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs index 8a90b48..29bdd21 100644 --- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs +++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | |||
@@ -2378,6 +2378,8 @@ Console.WriteLine(" JointCreateFixed"); | |||
2378 | 2378 | ||
2379 | public override void SetVolumeDetect(int param) | 2379 | public override void SetVolumeDetect(int param) |
2380 | { | 2380 | { |
2381 | // We have to lock the scene here so that an entire simulate loop either uses volume detect for all | ||
2382 | // possible collisions with this prim or for none of them. | ||
2381 | lock (_parent_scene.OdeLock) | 2383 | lock (_parent_scene.OdeLock) |
2382 | { | 2384 | { |
2383 | m_isVolumeDetect = (param != 0); | 2385 | m_isVolumeDetect = (param != 0); |