aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 8415feb..6414f35 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -6006,6 +6006,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6006 public LSL_Vector llGroundSlope(LSL_Vector offset) 6006 public LSL_Vector llGroundSlope(LSL_Vector offset)
6007 { 6007 {
6008 m_host.AddScriptLPS(1); 6008 m_host.AddScriptLPS(1);
6009
6009 //Get the slope normal. This gives us the equation of the plane tangent to the slope. 6010 //Get the slope normal. This gives us the equation of the plane tangent to the slope.
6010 LSL_Vector vsn = llGroundNormal(offset); 6011 LSL_Vector vsn = llGroundNormal(offset);
6011 6012
@@ -6016,7 +6017,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6016 vsl.Normalize(); 6017 vsl.Normalize();
6017 //Normalization might be overkill here 6018 //Normalization might be overkill here
6018 6019
6019 return new LSL_Vector(vsl.X, vsl.Y, vsl.Z); 6020 vsn.x = vsl.X;
6021 vsn.y = vsl.Y;
6022 vsn.z = vsl.Z;
6023
6024 return vsn;
6020 } 6025 }
6021 6026
6022 public LSL_Vector llGroundNormal(LSL_Vector offset) 6027 public LSL_Vector llGroundNormal(LSL_Vector offset)