diff options
author | Teravus Ovares | 2008-05-30 23:53:20 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-05-30 23:53:20 +0000 |
commit | 2d540514f4916b51e41a388b0d7f259e1bd425d2 (patch) | |
tree | bd42ed9d4a3f614e3cceb4ffc6a0a3a4860a36f1 | |
parent | * You can set the sun phase via the estate tools now. It doesn't persist a... (diff) | |
download | opensim-SC_OLD-2d540514f4916b51e41a388b0d7f259e1bd425d2.zip opensim-SC_OLD-2d540514f4916b51e41a388b0d7f259e1bd425d2.tar.gz opensim-SC_OLD-2d540514f4916b51e41a388b0d7f259e1bd425d2.tar.bz2 opensim-SC_OLD-2d540514f4916b51e41a388b0d7f259e1bd425d2.tar.xz |
* 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)
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs b/OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs index e2b35c5..713060f 100644 --- a/OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs | |||
@@ -364,6 +364,13 @@ namespace OpenSim.Region.Environment.Modules | |||
364 | // Correct angular velocity to reflect the seasonal rotation | 364 | // Correct angular velocity to reflect the seasonal rotation |
365 | 365 | ||
366 | Magnitude = LLVector3.Mag(Position); | 366 | Magnitude = LLVector3.Mag(Position); |
367 | if (sunFixed) | ||
368 | { | ||
369 | Velocity.X = 0; | ||
370 | Velocity.Y = 0; | ||
371 | Velocity.Z = 0; | ||
372 | return; | ||
373 | } | ||
367 | 374 | ||
368 | Velocity = LLVector3.Rot(Velocity, Tilt)*((float)(1.0/Magnitude)); | 375 | Velocity = LLVector3.Rot(Velocity, Tilt)*((float)(1.0/Magnitude)); |
369 | 376 | ||
@@ -423,7 +430,7 @@ namespace OpenSim.Region.Environment.Modules | |||
423 | //if (useEstateTime) | 430 | //if (useEstateTime) |
424 | //LindenHourOffset = 0; | 431 | //LindenHourOffset = 0; |
425 | 432 | ||
426 | //ForceSunUpdateToAllClients(); | 433 | ForceSunUpdateToAllClients(); |
427 | sunFixed = FixedTime; | 434 | sunFixed = FixedTime; |
428 | if (sunFixed) | 435 | if (sunFixed) |
429 | GenSunPos(); | 436 | GenSunPos(); |