diff options
author | Melanie Thielker | 2010-08-08 02:01:24 +0200 |
---|---|---|
committer | Melanie Thielker | 2010-08-08 02:01:24 +0200 |
commit | 50ac61e17f4e164931dc26f01ffbe58dced9e772 (patch) | |
tree | 36a5c873ef22ef0db41546710ba6236317e9dc3f /OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |
parent | Add search URL to Login Service (diff) | |
download | opensim-SC-50ac61e17f4e164931dc26f01ffbe58dced9e772.zip opensim-SC-50ac61e17f4e164931dc26f01ffbe58dced9e772.tar.gz opensim-SC-50ac61e17f4e164931dc26f01ffbe58dced9e772.tar.bz2 opensim-SC-50ac61e17f4e164931dc26f01ffbe58dced9e772.tar.xz |
In my crusade against facelights, I am striking the killing blow. Add a
DisableFacelights option to OpenSim.ini to finally kill those immersion-
breaking, silly vanity lights that destroy nighttime RP. Girls, you look
just fine without them. Guys, you too. Thank you. Melanie has left the building.
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index af2dd85..a0e5521 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -315,6 +315,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
315 | private int m_cachedTextureSerial; | 315 | private int m_cachedTextureSerial; |
316 | private PriorityQueue m_entityUpdates; | 316 | private PriorityQueue m_entityUpdates; |
317 | private Prioritizer m_prioritizer; | 317 | private Prioritizer m_prioritizer; |
318 | private bool m_disableFacelights = false; | ||
318 | 319 | ||
319 | /// <value> | 320 | /// <value> |
320 | /// List used in construction of data blocks for an object update packet. This is to stop us having to | 321 | /// List used in construction of data blocks for an object update packet. This is to stop us having to |
@@ -420,6 +421,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
420 | set { m_IsLoggingOut = value; } | 421 | set { m_IsLoggingOut = value; } |
421 | } | 422 | } |
422 | 423 | ||
424 | public bool DisableFacelights | ||
425 | { | ||
426 | get { return m_disableFacelights; } | ||
427 | set { m_disableFacelights = value; } | ||
428 | } | ||
429 | |||
423 | public bool SendLogoutPacketWhenClosing { set { m_SendLogoutPacketWhenClosing = value; } } | 430 | public bool SendLogoutPacketWhenClosing { set { m_SendLogoutPacketWhenClosing = value; } } |
424 | 431 | ||
425 | #endregion Properties | 432 | #endregion Properties |
@@ -3522,6 +3529,15 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
3522 | SceneObjectPart part = (SceneObjectPart)update.Entity; | 3529 | SceneObjectPart part = (SceneObjectPart)update.Entity; |
3523 | if (m_killRecord.Contains(part.ParentGroup.RootPart.LocalId)) | 3530 | if (m_killRecord.Contains(part.ParentGroup.RootPart.LocalId)) |
3524 | continue; | 3531 | continue; |
3532 | |||
3533 | if (part.ParentGroup.IsAttachment && m_disableFacelights) | ||
3534 | { | ||
3535 | if (part.ParentGroup.RootPart.Shape.State != (byte)AttachmentPoint.LeftHand && | ||
3536 | part.ParentGroup.RootPart.Shape.State != (byte)AttachmentPoint.RightHand) | ||
3537 | { | ||
3538 | part.Shape.LightEntry = false; | ||
3539 | } | ||
3540 | } | ||
3525 | } | 3541 | } |
3526 | 3542 | ||
3527 | ++updatesThisCall; | 3543 | ++updatesThisCall; |