aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs14
1 files changed, 12 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index 41c3956..f4a3bd3 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -2444,8 +2444,18 @@ namespace OpenSim.Region.ScriptEngine.Common
2444 public LSL_Types.Vector3 llGetSunDirection() 2444 public LSL_Types.Vector3 llGetSunDirection()
2445 { 2445 {
2446 m_host.AddScriptLPS(1); 2446 m_host.AddScriptLPS(1);
2447 NotImplemented("llGetSunDirection"); 2447
2448 return new LSL_Types.Vector3(); 2448 LSL_Types.Vector3 SunDoubleVector3;
2449 LLVector3 SunFloatVector3;
2450
2451 // sunPosition estate setting is set in OpenSim.Region.Environment.Modules.SunModule
2452 // have to convert from LLVector3 (float) to LSL_Types.Vector3 (double)
2453 SunFloatVector3 = World.RegionInfo.EstateSettings.sunPosition;
2454 SunDoubleVector3.x = (double)SunFloatVector3.X;
2455 SunDoubleVector3.y = (double)SunFloatVector3.Y;
2456 SunDoubleVector3.z = (double)SunFloatVector3.Z;
2457
2458 return SunDoubleVector3;
2449 } 2459 }
2450 2460
2451 public LSL_Types.Vector3 llGetTextureOffset(int face) 2461 public LSL_Types.Vector3 llGetTextureOffset(int face)