diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/EventManager.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs b/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs index 9ed2fbb..67ac0ce 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs | |||
@@ -80,7 +80,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
80 | } | 80 | } |
81 | 81 | ||
82 | public void touch_start(uint localID, uint originalID, Vector3 offsetPos, | 82 | public void touch_start(uint localID, uint originalID, Vector3 offsetPos, |
83 | IClientAPI remoteClient) | 83 | IClientAPI remoteClient, SurfaceTouchEventArgs surfaceArgs) |
84 | { | 84 | { |
85 | // Add to queue for all scripts in ObjectID object | 85 | // Add to queue for all scripts in ObjectID object |
86 | DetectParams[] det = new DetectParams[1]; | 86 | DetectParams[] det = new DetectParams[1]; |
@@ -102,6 +102,11 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
102 | det[0].LinkNum = originalPart.LinkNum; | 102 | det[0].LinkNum = originalPart.LinkNum; |
103 | } | 103 | } |
104 | 104 | ||
105 | if (surfaceArgs != null) | ||
106 | { | ||
107 | det[0].SurfaceTouchArgs = surfaceArgs; | ||
108 | } | ||
109 | |||
105 | myScriptEngine.PostObjectEvent(localID, new EventParams( | 110 | myScriptEngine.PostObjectEvent(localID, new EventParams( |
106 | "touch_start", new Object[] { new LSL_Types.LSLInteger(1) }, | 111 | "touch_start", new Object[] { new LSL_Types.LSLInteger(1) }, |
107 | det)); | 112 | det)); |