diff options
author | Justin Clarke Casey | 2008-04-23 10:16:26 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-04-23 10:16:26 +0000 |
commit | 6efb16689aa2ca364f738342a1173c27fef54b86 (patch) | |
tree | 04471707fbe7b7532981a2bf3be265d0fc1b21ba /OpenSim/Region/Environment | |
parent | * Updated filesystem refs for bamboo.build (diff) | |
download | opensim-SC-6efb16689aa2ca364f738342a1173c27fef54b86.zip opensim-SC-6efb16689aa2ca364f738342a1173c27fef54b86.tar.gz opensim-SC-6efb16689aa2ca364f738342a1173c27fef54b86.tar.bz2 opensim-SC-6efb16689aa2ca364f738342a1173c27fef54b86.tar.xz |
From: Kurt Taylor <krtaylor@us.ibm.com>
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
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Modules/SunModule.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/SunModule.cs b/OpenSim/Region/Environment/Modules/SunModule.cs index 37519ed..e6801e8 100644 --- a/OpenSim/Region/Environment/Modules/SunModule.cs +++ b/OpenSim/Region/Environment/Modules/SunModule.cs | |||
@@ -108,6 +108,9 @@ namespace OpenSim.Region.Environment.Modules | |||
108 | { | 108 | { |
109 | avatar.ControllingClient.SendSunPos(SunPos(HourOfTheDay()), new LLVector3(0, 0.0f, 10.0f)); | 109 | avatar.ControllingClient.SendSunPos(SunPos(HourOfTheDay()), new LLVector3(0, 0.0f, 10.0f)); |
110 | } | 110 | } |
111 | // set estate settings for region access to sun position | ||
112 | m_scene.RegionInfo.EstateSettings.sunPosition = SunPos(HourOfTheDay()); | ||
113 | |||
111 | m_frame = 0; | 114 | m_frame = 0; |
112 | } | 115 | } |
113 | 116 | ||