Add case to Lightshare/Windlight

Thanks thomax for a patch to add handling for Sun/Moon pos.
remove-scene-viewer
BlueWall 2011-10-22 13:06:34 -04:00
parent 655aee44c4
commit 3fc47275cf
1 changed files with 3 additions and 0 deletions

View File

@ -235,6 +235,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
case (int)ScriptBaseClass.WL_SUN_MOON_COLOR: case (int)ScriptBaseClass.WL_SUN_MOON_COLOR:
toadd.Add(new LSL_Rotation(wl.sunMoonColor.X, wl.sunMoonColor.Y, wl.sunMoonColor.Z, wl.sunMoonColor.W)); toadd.Add(new LSL_Rotation(wl.sunMoonColor.X, wl.sunMoonColor.Y, wl.sunMoonColor.Z, wl.sunMoonColor.W));
break; break;
case (int)ScriptBaseClass.WL_SUN_MOON_POSITION:
toadd.Add(new LSL_Float(wl.sunMoonPosition));
break;
case (int)ScriptBaseClass.WL_UNDERWATER_FOG_MODIFIER: case (int)ScriptBaseClass.WL_UNDERWATER_FOG_MODIFIER:
toadd.Add(new LSL_Float(wl.underwaterFogModifier)); toadd.Add(new LSL_Float(wl.underwaterFogModifier));
break; break;