mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
* If you check fixed sun, in the estate tools 'terrain tab', the sun will fix in the location you set. (however the checkbox doesn't get re-populated properly yet, so it'll uncheck again even though the message got through to the server)
This commit is contained in:
@@ -364,6 +364,13 @@ namespace OpenSim.Region.Environment.Modules
|
||||
// Correct angular velocity to reflect the seasonal rotation
|
||||
|
||||
Magnitude = LLVector3.Mag(Position);
|
||||
if (sunFixed)
|
||||
{
|
||||
Velocity.X = 0;
|
||||
Velocity.Y = 0;
|
||||
Velocity.Z = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
Velocity = LLVector3.Rot(Velocity, Tilt)*((float)(1.0/Magnitude));
|
||||
|
||||
@@ -423,7 +430,7 @@ namespace OpenSim.Region.Environment.Modules
|
||||
//if (useEstateTime)
|
||||
//LindenHourOffset = 0;
|
||||
|
||||
//ForceSunUpdateToAllClients();
|
||||
ForceSunUpdateToAllClients();
|
||||
sunFixed = FixedTime;
|
||||
if (sunFixed)
|
||||
GenSunPos();
|
||||
|
||||
Reference in New Issue
Block a user