MantisBT - opensim
View Issue Details
0004884opensim[REGION] Specific OpenSim Modulepublic2010-07-22 16:162013-01-11 13:32
thomax 
BlueWall 
normalminoralways
closedfixed 
master (dev code) 
master (dev code) 
0c0ac65d38c1c203ab318ace1a393baa625c48ba
Grid (Multiple Regions per Sim)
ODE
Mono / Linux32
trunk
0004884: Lightshare/Windlight function lsGetWindlightScene didn't give a value for WL_SUN_MOON_POSITION
the lsGetWindlightScene function didnt give any value for WL_SUN_MOON_POSITION simply because it was forgotten to copy & paste (or whatever :-)

find the following patch attached for a fast fix.

diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs
index fe71ed5..01b014f 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs
@@ -234,6 +234,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
                     case (int)ScriptBaseClass.WL_SUN_MOON_COLOR:
                         toadd.Add(new LSL_Rotation(wl.sunMoonColor.X, wl.sunMoonColor.Y, wl.sunMoonColor.Z, wl.sunMoonColor.W));
                         break;
+ case (int)ScriptBaseClass.WL_SUN_MOON_POSITION:
+ toadd.Add(new LSL_Float(wl.sunMoonPosition));
+ break;
                     case (int)ScriptBaseClass.WL_UNDERWATER_FOG_MODIFIER:
                         toadd.Add(new LSL_Float(wl.underwaterFogModifier));
                         break;
No tags attached.
patch lightshare.patch (966) 2010-07-22 16:16
http://opensimulator.org/mantis/file_download.php?file_id=2409&type=bug
Issue History
2010-07-22 16:16thomaxNew Issue
2010-07-22 16:16thomaxFile Added: lightshare.patch
2010-07-22 16:16thomaxGit Revision => 0c0ac65d38c1c203ab318ace1a393baa625c48ba
2010-07-22 16:16thomaxSVN Revision => 0
2010-07-22 16:16thomaxRun Mode => Grid (Multiple Regions per Sim)
2010-07-22 16:16thomaxPhysics Engine => ODE
2010-07-22 16:16thomaxEnvironment => Mono / Linux32
2010-07-22 16:16thomaxMono Version => trunk
2010-07-22 16:17thomaxStatusnew => patch included
2011-10-22 10:11BlueWallStatuspatch included => resolved
2011-10-22 10:11BlueWallFixed in Version => master (dev code)
2011-10-22 10:11BlueWallResolutionopen => fixed
2011-10-22 10:11BlueWallAssigned To => BlueWall
2011-10-22 10:11BlueWallNote Added: 0020226
2011-10-22 10:11BlueWallStatusresolved => closed

Notes
(0020226)
BlueWall   
2011-10-22 10:11   
added to: 3fc47275cff5f74e370a24f63f42a6bee023ee17

Thanks thomax!