diff options
author | UbitUmarov | 2012-07-14 20:10:38 +0100 |
---|---|---|
committer | UbitUmarov | 2012-07-14 20:10:38 +0100 |
commit | 1dca94c72fabf06da4d85d6acad5894dabe79c5a (patch) | |
tree | 413fcbc44ab5d84c0a111cd39b87d493b751b444 /OpenSim/Region/Framework | |
parent | In collisions report linksets root parts to parts, and not all parts. (diff) | |
download | opensim-SC-1dca94c72fabf06da4d85d6acad5894dabe79c5a.zip opensim-SC-1dca94c72fabf06da4d85d6acad5894dabe79c5a.tar.gz opensim-SC-1dca94c72fabf06da4d85d6acad5894dabe79c5a.tar.bz2 opensim-SC-1dca94c72fabf06da4d85d6acad5894dabe79c5a.tar.xz |
don't subscribe collision events for nonphysical parts only because of
collision sounds. Let them be passive
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/CollisionSounds.cs | 1 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/CollisionSounds.cs b/OpenSim/Region/Framework/Scenes/CollisionSounds.cs index 075724e..21c9ab9 100644 --- a/OpenSim/Region/Framework/Scenes/CollisionSounds.cs +++ b/OpenSim/Region/Framework/Scenes/CollisionSounds.cs | |||
@@ -31,6 +31,7 @@ using System.Reflection; | |||
31 | using System.Collections.Generic; | 31 | using System.Collections.Generic; |
32 | using OpenMetaverse; | 32 | using OpenMetaverse; |
33 | using OpenSim.Framework; | 33 | using OpenSim.Framework; |
34 | using OpenSim.Region.Physics.Manager; | ||
34 | using log4net; | 35 | using log4net; |
35 | 36 | ||
36 | namespace OpenSim.Region.Framework.Scenes | 37 | namespace OpenSim.Region.Framework.Scenes |
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 16a8588..735bd32 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -4917,7 +4917,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
4917 | 4917 | ||
4918 | pa.OnCollisionUpdate -= PhysicsCollision; | 4918 | pa.OnCollisionUpdate -= PhysicsCollision; |
4919 | 4919 | ||
4920 | bool hassound = (CollisionSoundType >= 0 && !VolumeDetectActive); | 4920 | bool hassound = (!VolumeDetectActive && CollisionSoundType >= 0 && ((Flags & PrimFlags.Physics) != 0)); |
4921 | 4921 | ||
4922 | scriptEvents CombinedEvents = AggregateScriptEvents; | 4922 | scriptEvents CombinedEvents = AggregateScriptEvents; |
4923 | 4923 | ||