From 6efb16689aa2ca364f738342a1173c27fef54b86 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 23 Apr 2008 10:16:26 +0000 Subject: From: Kurt Taylor Attached is a patch for adding the llGetSunDirection functionality. It was implemented by adding a parameter to estate settings for storing the sun position. The sun position is calculated and stored via the sun module everytime the client's sun position is updated. It was tested with several different srcipts on Linux and Windows --- OpenSim/Framework/EstateSettings.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'OpenSim/Framework/EstateSettings.cs') diff --git a/OpenSim/Framework/EstateSettings.cs b/OpenSim/Framework/EstateSettings.cs index 98052fc..efb55fe 100644 --- a/OpenSim/Framework/EstateSettings.cs +++ b/OpenSim/Framework/EstateSettings.cs @@ -159,6 +159,18 @@ namespace OpenSim.Framework } } + private LLVector3 m_sunPosition; + + public LLVector3 sunPosition + { + get { return m_sunPosition; } + set + { + //Just set - does not need to be written to settings file + m_sunPosition = value; + } + } + private float m_terrainRaiseLimit; public float terrainRaiseLimit -- cgit v1.1