diff options
author | Tedd Hansen | 2008-02-10 21:30:46 +0000 |
---|---|---|
committer | Tedd Hansen | 2008-02-10 21:30:46 +0000 |
commit | 801e95bbe1e67544c7d08971ab90d154c6c1449b (patch) | |
tree | c64d1644d07b73228f66ff548462b7c795ce3989 /OpenSim/Region/ScriptEngine | |
parent | Implements llListStatistics() and a bunch-o-LSL_Types.list statistical method... (diff) | |
download | opensim-SC-801e95bbe1e67544c7d08971ab90d154c6c1449b.zip opensim-SC-801e95bbe1e67544c7d08971ab90d154c6c1449b.tar.gz opensim-SC-801e95bbe1e67544c7d08971ab90d154c6c1449b.tar.bz2 opensim-SC-801e95bbe1e67544c7d08971ab90d154c6c1449b.tar.xz |
Added support for function calls as values in LSL-specific <0,0,0> and <0,0,0,0> Quaternion and Vector
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs index 31efeb7..613aa32 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL2CSConverter.cs | |||
@@ -257,10 +257,10 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL | |||
257 | 257 | ||
258 | // Replace <x,y,z> and <x,y,z,r> | 258 | // Replace <x,y,z> and <x,y,z,r> |
259 | Script = | 259 | Script = |
260 | Regex.Replace(Script, @"<([^,>;\)]*,[^,>;\)]*,[^,>;\)]*,[^,>;\)]*)>", @"new LSL_Types.Quaternion($1)", | 260 | Regex.Replace(Script, @"<([^,>;]*,[^,>;\)]*,[^,>;\)]*,[^,>;\)]*)>", @"new LSL_Types.Quaternion($1)", |
261 | RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline); | 261 | RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline); |
262 | Script = | 262 | Script = |
263 | Regex.Replace(Script, @"<([^,>;\)]*,[^,>;\)]*,[^,>;\)]*)>", @"new LSL_Types.Vector3($1)", | 263 | Regex.Replace(Script, @"<([^,>;]*,[^,>;\)]*,[^,>;\)]*)>", @"new LSL_Types.Vector3($1)", |
264 | RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline); | 264 | RegexOptions.Compiled | RegexOptions.Multiline | RegexOptions.Singleline); |
265 | 265 | ||
266 | // Replace List []'s | 266 | // Replace List []'s |