diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 991d5c9..0f36e82 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |||
@@ -3478,6 +3478,16 @@ if (m_shape != null) { | |||
3478 | } | 3478 | } |
3479 | } | 3479 | } |
3480 | } | 3480 | } |
3481 | if ( | ||
3482 | ((AggregateScriptEvents & scriptEvents.collision) != 0) || | ||
3483 | ((AggregateScriptEvents & scriptEvents.collision_end) != 0) || | ||
3484 | ((AggregateScriptEvents & scriptEvents.collision_start) != 0) || | ||
3485 | (CollisionSound != UUID.Zero) | ||
3486 | ) | ||
3487 | { | ||
3488 | PhysActor.OnCollisionUpdate += PhysicsCollision; | ||
3489 | PhysActor.SubscribeEvents(1000); | ||
3490 | } | ||
3481 | } | 3491 | } |
3482 | } | 3492 | } |
3483 | else // it already has a physical representation | 3493 | else // it already has a physical representation |