diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs index 71b2716..dccc09a 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs | |||
@@ -164,7 +164,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
164 | 164 | ||
165 | // If the touched prim handles touches, deliver it | 165 | // If the touched prim handles touches, deliver it |
166 | // If not, deliver to root prim | 166 | // If not, deliver to root prim |
167 | if ((part.ObjectFlags & (uint)LLObject.ObjectFlags.Touch) != 0) | 167 | if ((part.ScriptEvents & scriptEvents.touch_start) != 0) |
168 | EventManager.TriggerObjectGrab(part.LocalId, part.OffsetPosition, remoteClient); | 168 | EventManager.TriggerObjectGrab(part.LocalId, part.OffsetPosition, remoteClient); |
169 | else | 169 | else |
170 | EventManager.TriggerObjectGrab(obj.RootPart.LocalId, part.OffsetPosition, remoteClient); | 170 | EventManager.TriggerObjectGrab(obj.RootPart.LocalId, part.OffsetPosition, remoteClient); |
@@ -195,7 +195,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
195 | { | 195 | { |
196 | // If the touched prim handles touches, deliver it | 196 | // If the touched prim handles touches, deliver it |
197 | // If not, deliver to root prim | 197 | // If not, deliver to root prim |
198 | if ((part.ObjectFlags & (uint)LLObject.ObjectFlags.Touch) != 0) | 198 | if ((part.ScriptEvents & scriptEvents.touch_end) != 0) |
199 | EventManager.TriggerObjectDeGrab(part.LocalId, remoteClient); | 199 | EventManager.TriggerObjectDeGrab(part.LocalId, remoteClient); |
200 | else | 200 | else |
201 | EventManager.TriggerObjectDeGrab(obj.RootPart.LocalId, remoteClient); | 201 | EventManager.TriggerObjectDeGrab(obj.RootPart.LocalId, remoteClient); |