diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs index 72766a4..09dbc40 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs | |||
@@ -141,7 +141,7 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
141 | } | 141 | } |
142 | 142 | ||
143 | public void touch_start(uint localID, uint originalID, | 143 | public void touch_start(uint localID, uint originalID, |
144 | Vector3 offsetPos, IClientAPI remoteClient) | 144 | Vector3 offsetPos, IClientAPI remoteClient, SurfaceTouchEventArgs surfaceArgs) |
145 | { | 145 | { |
146 | // Add to queue for all scripts in ObjectID object | 146 | // Add to queue for all scripts in ObjectID object |
147 | DetectParams[] det = new DetectParams[1]; | 147 | DetectParams[] det = new DetectParams[1]; |
@@ -165,6 +165,10 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
165 | myScriptEngine.World.GetSceneObjectPart(originalID); | 165 | myScriptEngine.World.GetSceneObjectPart(originalID); |
166 | det[0].LinkNum = originalPart.LinkNum; | 166 | det[0].LinkNum = originalPart.LinkNum; |
167 | } | 167 | } |
168 | if (surfaceArgs != null) | ||
169 | { | ||
170 | det[0].SurfaceTouchArgs = surfaceArgs; | ||
171 | } | ||
168 | 172 | ||
169 | myScriptEngine.PostObjectEvent(localID, new EventParams( | 173 | myScriptEngine.PostObjectEvent(localID, new EventParams( |
170 | "touch_start", new Object[] { new LSL_Types.LSLInteger(1) }, | 174 | "touch_start", new Object[] { new LSL_Types.LSLInteger(1) }, |