diff options
author | Melanie Thielker | 2008-09-08 19:29:16 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-09-08 19:29:16 +0000 |
commit | 6447d7132f0f443205e719a00e595f79444eea25 (patch) | |
tree | d28bbcc81e3ba99085ff679f29116111327b8c49 /OpenSim/Region/ScriptEngine/Shared/Api | |
parent | Mantis #2147 (diff) | |
download | opensim-SC_OLD-6447d7132f0f443205e719a00e595f79444eea25.zip opensim-SC_OLD-6447d7132f0f443205e719a00e595f79444eea25.tar.gz opensim-SC_OLD-6447d7132f0f443205e719a00e595f79444eea25.tar.bz2 opensim-SC_OLD-6447d7132f0f443205e719a00e595f79444eea25.tar.xz |
Adapt the unit tests to the new list rules, change some casts to
new method for testing
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index bc58a8a..4b92739 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -5614,12 +5614,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
5614 | if (remain < 6) | 5614 | if (remain < 6) |
5615 | return; | 5615 | return; |
5616 | 5616 | ||
5617 | face = Convert.ToInt32(rules.Data[idx++].ToString()); // holeshape | 5617 | face = (int)rules.GetLSLIntegerItem(idx++); |
5618 | v = new LSL_Types.Vector3(rules.Data[idx++].ToString()); // cut | 5618 | v = rules.GetVector3Item(idx++); // cut |
5619 | hollow = (float)Convert.ToDouble(rules.Data[idx++].ToString()); | 5619 | hollow = (float)rules.GetLSLFloatItem(idx++); |
5620 | twist = new LSL_Types.Vector3(rules.Data[idx++].ToString()); | 5620 | twist = rules.GetVector3Item(idx++); |
5621 | taper_b = new LSL_Types.Vector3(rules.Data[idx++].ToString()); | 5621 | taper_b = rules.GetVector3Item(idx++); |
5622 | topshear = new LSL_Types.Vector3(rules.Data[idx++].ToString()); | 5622 | topshear = rules.GetVector3Item(idx++); |
5623 | |||
5623 | part.Shape.PathCurve = (byte)Extrusion.Straight; | 5624 | part.Shape.PathCurve = (byte)Extrusion.Straight; |
5624 | SetPrimitiveShapeParams(part, face, v, hollow, twist, taper_b, topshear, 1); | 5625 | SetPrimitiveShapeParams(part, face, v, hollow, twist, taper_b, topshear, 1); |
5625 | break; | 5626 | break; |