diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs index 04d2ea9..a782e2d 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | |||
@@ -195,6 +195,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
195 | private float[] _heightmap; | 195 | private float[] _heightmap; |
196 | 196 | ||
197 | private float[] _watermap; | 197 | private float[] _watermap; |
198 | private bool m_filterCollisions = true; | ||
198 | 199 | ||
199 | // private float[] _origheightmap; | 200 | // private float[] _origheightmap; |
200 | 201 | ||
@@ -360,6 +361,7 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
360 | meshSculptedPrim = physicsconfig.GetBoolean("mesh_sculpted_prim", true); | 361 | meshSculptedPrim = physicsconfig.GetBoolean("mesh_sculpted_prim", true); |
361 | meshSculptLOD = physicsconfig.GetFloat("mesh_lod", 32f); | 362 | meshSculptLOD = physicsconfig.GetFloat("mesh_lod", 32f); |
362 | MeshSculptphysicalLOD = physicsconfig.GetFloat("mesh_physical_lod", 16f); | 363 | MeshSculptphysicalLOD = physicsconfig.GetFloat("mesh_physical_lod", 16f); |
364 | m_filterCollisions = physicsconfig.GetBoolean("filter_collisions", true); | ||
363 | 365 | ||
364 | if (Environment.OSVersion.Platform == PlatformID.Unix) | 366 | if (Environment.OSVersion.Platform == PlatformID.Unix) |
365 | { | 367 | { |
@@ -847,6 +849,9 @@ namespace OpenSim.Region.Physics.OdePlugin | |||
847 | { | 849 | { |
848 | bool result = false; | 850 | bool result = false; |
849 | //return result; | 851 | //return result; |
852 | if (!m_filterCollisions) | ||
853 | return false; | ||
854 | |||
850 | ActorTypes at = (ActorTypes)atype; | 855 | ActorTypes at = (ActorTypes)atype; |
851 | lock (_perloopContact) | 856 | lock (_perloopContact) |
852 | { | 857 | { |