diff options
-rw-r--r-- | CONTRIBUTORS.txt | 4 | ||||
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | 58 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | 1 | ||||
-rw-r--r-- | bin/OpenSimDefaults.ini | 8 |
5 files changed, 66 insertions, 7 deletions
diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index 239b884..2620a20 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt | |||
@@ -5,7 +5,7 @@ for your effort!) | |||
5 | These folks represent the current core team for OpenSim, and are the | 5 | These folks represent the current core team for OpenSim, and are the |
6 | people that make the day to day of OpenSim happen. | 6 | people that make the day to day of OpenSim happen. |
7 | 7 | ||
8 | * justincc | 8 | * justincc (OSVW Consulting, justincc.org) |
9 | * chi11ken (Genkii) | 9 | * chi11ken (Genkii) |
10 | * dahlia | 10 | * dahlia |
11 | * Melanie Thielker | 11 | * Melanie Thielker |
@@ -15,6 +15,7 @@ people that make the day to day of OpenSim happen. | |||
15 | * Mic Bowman (Intel) | 15 | * Mic Bowman (Intel) |
16 | * BlueWall (James Hughes) | 16 | * BlueWall (James Hughes) |
17 | * Snoopy Pfeffer | 17 | * Snoopy Pfeffer |
18 | * Richard Adams (Intel) | ||
18 | 19 | ||
19 | = Core Developers Following the White Rabbit = | 20 | = Core Developers Following the White Rabbit = |
20 | Core developers who have temporarily (we hope) gone chasing the white rabbit. | 21 | Core developers who have temporarily (we hope) gone chasing the white rabbit. |
@@ -119,6 +120,7 @@ what it is today. | |||
119 | * openlifegrid.com | 120 | * openlifegrid.com |
120 | * Oren Hurvitz (Kitely) | 121 | * Oren Hurvitz (Kitely) |
121 | * otakup0pe | 122 | * otakup0pe |
123 | * Pixel Tomsen | ||
122 | * ralphos | 124 | * ralphos |
123 | * RemedyTomm | 125 | * RemedyTomm |
124 | * Revolution | 126 | * Revolution |
diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs index c0d65ac..a6bdc2d 100644 --- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | |||
@@ -442,7 +442,7 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
442 | string path = request.RawUrl; | 442 | string path = request.RawUrl; |
443 | string handlerKey = GetHandlerKey(request.HttpMethod, path); | 443 | string handlerKey = GetHandlerKey(request.HttpMethod, path); |
444 | 444 | ||
445 | //m_log.DebugFormat("[BASE HTTP SERVER]: Handling {0} request for {1}", request.HttpMethod, path); | 445 | // m_log.DebugFormat("[BASE HTTP SERVER]: Handling {0} request for {1}", request.HttpMethod, path); |
446 | 446 | ||
447 | if (TryGetStreamHandler(handlerKey, out requestHandler)) | 447 | if (TryGetStreamHandler(handlerKey, out requestHandler)) |
448 | { | 448 | { |
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs index a130ed2..3bdb173 100644 --- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | |||
@@ -49,25 +49,42 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
49 | 49 | ||
50 | private Scene m_scene; | 50 | private Scene m_scene; |
51 | private IDialogModule m_dialogModule; | 51 | private IDialogModule m_dialogModule; |
52 | |||
53 | /// <summary> | ||
54 | /// Are attachments enabled? | ||
55 | /// </summary> | ||
56 | public bool Enabled { get; private set; } | ||
52 | 57 | ||
53 | public string Name { get { return "Attachments Module"; } } | 58 | public string Name { get { return "Attachments Module"; } } |
54 | public Type ReplaceableInterface { get { return null; } } | 59 | public Type ReplaceableInterface { get { return null; } } |
55 | 60 | ||
56 | public void Initialise(IConfigSource source) {} | 61 | public void Initialise(IConfigSource source) |
62 | { | ||
63 | IConfig config = source.Configs["Attachments"]; | ||
64 | if (config != null) | ||
65 | Enabled = config.GetBoolean("Enabled", true); | ||
66 | else | ||
67 | Enabled = true; | ||
68 | } | ||
57 | 69 | ||
58 | public void AddRegion(Scene scene) | 70 | public void AddRegion(Scene scene) |
59 | { | 71 | { |
60 | m_scene = scene; | 72 | m_scene = scene; |
61 | m_dialogModule = m_scene.RequestModuleInterface<IDialogModule>(); | 73 | m_dialogModule = m_scene.RequestModuleInterface<IDialogModule>(); |
62 | m_scene.RegisterModuleInterface<IAttachmentsModule>(this); | 74 | m_scene.RegisterModuleInterface<IAttachmentsModule>(this); |
63 | m_scene.EventManager.OnNewClient += SubscribeToClientEvents; | 75 | |
76 | if (Enabled) | ||
77 | m_scene.EventManager.OnNewClient += SubscribeToClientEvents; | ||
78 | |||
64 | // TODO: Should probably be subscribing to CloseClient too, but this doesn't yet give us IClientAPI | 79 | // TODO: Should probably be subscribing to CloseClient too, but this doesn't yet give us IClientAPI |
65 | } | 80 | } |
66 | 81 | ||
67 | public void RemoveRegion(Scene scene) | 82 | public void RemoveRegion(Scene scene) |
68 | { | 83 | { |
69 | m_scene.UnregisterModuleInterface<IAttachmentsModule>(this); | 84 | m_scene.UnregisterModuleInterface<IAttachmentsModule>(this); |
70 | m_scene.EventManager.OnNewClient -= SubscribeToClientEvents; | 85 | |
86 | if (Enabled) | ||
87 | m_scene.EventManager.OnNewClient -= SubscribeToClientEvents; | ||
71 | } | 88 | } |
72 | 89 | ||
73 | public void RegionLoaded(Scene scene) {} | 90 | public void RegionLoaded(Scene scene) {} |
@@ -103,6 +120,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
103 | /// </summary> | 120 | /// </summary> |
104 | public void RezAttachments(IScenePresence sp) | 121 | public void RezAttachments(IScenePresence sp) |
105 | { | 122 | { |
123 | if (!Enabled) | ||
124 | return; | ||
125 | |||
106 | if (null == sp.Appearance) | 126 | if (null == sp.Appearance) |
107 | { | 127 | { |
108 | m_log.WarnFormat("[ATTACHMENTS MODULE]: Appearance has not been initialized for agent {0}", sp.UUID); | 128 | m_log.WarnFormat("[ATTACHMENTS MODULE]: Appearance has not been initialized for agent {0}", sp.UUID); |
@@ -146,6 +166,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
146 | { | 166 | { |
147 | // m_log.DebugFormat("[ATTACHMENTS MODULE]: Saving changed attachments for {0}", sp.Name); | 167 | // m_log.DebugFormat("[ATTACHMENTS MODULE]: Saving changed attachments for {0}", sp.Name); |
148 | 168 | ||
169 | if (!Enabled) | ||
170 | return; | ||
171 | |||
149 | foreach (SceneObjectGroup grp in sp.GetAttachments()) | 172 | foreach (SceneObjectGroup grp in sp.GetAttachments()) |
150 | { | 173 | { |
151 | // if (grp.HasGroupChanged) // Resizer scripts? | 174 | // if (grp.HasGroupChanged) // Resizer scripts? |
@@ -164,6 +187,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
164 | // "[ATTACHMENTS MODULE]: Deleting attachments from scene {0} for {1}, silent = {2}", | 187 | // "[ATTACHMENTS MODULE]: Deleting attachments from scene {0} for {1}, silent = {2}", |
165 | // m_scene.RegionInfo.RegionName, sp.Name, silent); | 188 | // m_scene.RegionInfo.RegionName, sp.Name, silent); |
166 | 189 | ||
190 | if (!Enabled) | ||
191 | return; | ||
192 | |||
167 | foreach (SceneObjectGroup sop in sp.GetAttachments()) | 193 | foreach (SceneObjectGroup sop in sp.GetAttachments()) |
168 | { | 194 | { |
169 | sop.Scene.DeleteSceneObject(sop, silent); | 195 | sop.Scene.DeleteSceneObject(sop, silent); |
@@ -185,6 +211,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
185 | // "[ATTACHMENTS MODULE]: Attaching object local id {0} to {1} point {2} from ground (silent = {3})", | 211 | // "[ATTACHMENTS MODULE]: Attaching object local id {0} to {1} point {2} from ground (silent = {3})", |
186 | // objectLocalID, remoteClient.Name, AttachmentPt, silent); | 212 | // objectLocalID, remoteClient.Name, AttachmentPt, silent); |
187 | 213 | ||
214 | if (!Enabled) | ||
215 | return; | ||
216 | |||
188 | try | 217 | try |
189 | { | 218 | { |
190 | ScenePresence sp = m_scene.GetScenePresence(remoteClient.AgentId); | 219 | ScenePresence sp = m_scene.GetScenePresence(remoteClient.AgentId); |
@@ -240,6 +269,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
240 | 269 | ||
241 | public bool AttachObject(IClientAPI remoteClient, SceneObjectGroup group, uint AttachmentPt, bool silent) | 270 | public bool AttachObject(IClientAPI remoteClient, SceneObjectGroup group, uint AttachmentPt, bool silent) |
242 | { | 271 | { |
272 | if (!Enabled) | ||
273 | return false; | ||
274 | |||
243 | ScenePresence sp = m_scene.GetScenePresence(remoteClient.AgentId); | 275 | ScenePresence sp = m_scene.GetScenePresence(remoteClient.AgentId); |
244 | 276 | ||
245 | if (sp == null) | 277 | if (sp == null) |
@@ -339,6 +371,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
339 | RezMultipleAttachmentsFromInvPacket.HeaderDataBlock header, | 371 | RezMultipleAttachmentsFromInvPacket.HeaderDataBlock header, |
340 | RezMultipleAttachmentsFromInvPacket.ObjectDataBlock[] objects) | 372 | RezMultipleAttachmentsFromInvPacket.ObjectDataBlock[] objects) |
341 | { | 373 | { |
374 | if (!Enabled) | ||
375 | return; | ||
376 | |||
342 | ScenePresence sp = m_scene.GetScenePresence(remoteClient.AgentId); | 377 | ScenePresence sp = m_scene.GetScenePresence(remoteClient.AgentId); |
343 | 378 | ||
344 | if (sp == null) | 379 | if (sp == null) |
@@ -368,6 +403,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
368 | public ISceneEntity RezSingleAttachmentFromInventory( | 403 | public ISceneEntity RezSingleAttachmentFromInventory( |
369 | IClientAPI remoteClient, UUID itemID, uint AttachmentPt, bool updateInventoryStatus, XmlDocument doc) | 404 | IClientAPI remoteClient, UUID itemID, uint AttachmentPt, bool updateInventoryStatus, XmlDocument doc) |
370 | { | 405 | { |
406 | if (!Enabled) | ||
407 | return null; | ||
408 | |||
371 | ScenePresence sp = m_scene.GetScenePresence(remoteClient.AgentId); | 409 | ScenePresence sp = m_scene.GetScenePresence(remoteClient.AgentId); |
372 | 410 | ||
373 | if (sp == null) | 411 | if (sp == null) |
@@ -383,6 +421,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
383 | 421 | ||
384 | public ISceneEntity RezSingleAttachmentFromInventory(ScenePresence sp, UUID itemID, uint AttachmentPt) | 422 | public ISceneEntity RezSingleAttachmentFromInventory(ScenePresence sp, UUID itemID, uint AttachmentPt) |
385 | { | 423 | { |
424 | if (!Enabled) | ||
425 | return null; | ||
426 | |||
386 | // m_log.DebugFormat( | 427 | // m_log.DebugFormat( |
387 | // "[ATTACHMENTS MODULE]: RezSingleAttachmentFromInventory to point {0} from item {1} for {2}", | 428 | // "[ATTACHMENTS MODULE]: RezSingleAttachmentFromInventory to point {0} from item {1} for {2}", |
388 | // (AttachmentPoint)AttachmentPt, itemID, sp.Name); | 429 | // (AttachmentPoint)AttachmentPt, itemID, sp.Name); |
@@ -570,6 +611,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
570 | 611 | ||
571 | public void DetachSingleAttachmentToInv(UUID itemID, IClientAPI remoteClient) | 612 | public void DetachSingleAttachmentToInv(UUID itemID, IClientAPI remoteClient) |
572 | { | 613 | { |
614 | if (!Enabled) | ||
615 | return; | ||
616 | |||
573 | ScenePresence presence; | 617 | ScenePresence presence; |
574 | if (m_scene.TryGetScenePresence(remoteClient.AgentId, out presence)) | 618 | if (m_scene.TryGetScenePresence(remoteClient.AgentId, out presence)) |
575 | { | 619 | { |
@@ -589,6 +633,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
589 | 633 | ||
590 | public void DetachSingleAttachmentToGround(uint soLocalId, IClientAPI remoteClient) | 634 | public void DetachSingleAttachmentToGround(uint soLocalId, IClientAPI remoteClient) |
591 | { | 635 | { |
636 | if (!Enabled) | ||
637 | return; | ||
638 | |||
592 | // m_log.DebugFormat( | 639 | // m_log.DebugFormat( |
593 | // "[ATTACHMENTS MODULE]: DetachSingleAttachmentToGround() for {0}, object {1}", | 640 | // "[ATTACHMENTS MODULE]: DetachSingleAttachmentToGround() for {0}, object {1}", |
594 | // remoteClient.Name, soLocalId); | 641 | // remoteClient.Name, soLocalId); |
@@ -704,6 +751,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
704 | 751 | ||
705 | public void UpdateAttachmentPosition(SceneObjectGroup sog, Vector3 pos) | 752 | public void UpdateAttachmentPosition(SceneObjectGroup sog, Vector3 pos) |
706 | { | 753 | { |
754 | if (!Enabled) | ||
755 | return; | ||
756 | |||
707 | // First we save the | 757 | // First we save the |
708 | // attachment point information, then we update the relative | 758 | // attachment point information, then we update the relative |
709 | // positioning. Then we have to mark the object as NOT an | 759 | // positioning. Then we have to mark the object as NOT an |
@@ -917,4 +967,4 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
917 | return item; | 967 | return item; |
918 | } | 968 | } |
919 | } | 969 | } |
920 | } \ No newline at end of file | 970 | } |
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs index f05b090..dd6bdf7 100644 --- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs +++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | |||
@@ -150,7 +150,6 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess | |||
150 | { | 150 | { |
151 | if (!m_Enabled) | 151 | if (!m_Enabled) |
152 | return; | 152 | return; |
153 | |||
154 | } | 153 | } |
155 | 154 | ||
156 | #endregion | 155 | #endregion |
diff --git a/bin/OpenSimDefaults.ini b/bin/OpenSimDefaults.ini index a456f4d..245f087 100644 --- a/bin/OpenSimDefaults.ini +++ b/bin/OpenSimDefaults.ini | |||
@@ -515,6 +515,7 @@ | |||
515 | ; so it is disabled by default. | 515 | ; so it is disabled by default. |
516 | Cap_WebFetchInventoryDescendents = "" | 516 | Cap_WebFetchInventoryDescendents = "" |
517 | 517 | ||
518 | |||
518 | [Chat] | 519 | [Chat] |
519 | ; Controls whether the chat module is enabled. Default is true. | 520 | ; Controls whether the chat module is enabled. Default is true. |
520 | enabled = true; | 521 | enabled = true; |
@@ -528,6 +529,7 @@ | |||
528 | ; Distance in meters that shouts should travel. Default is 100m | 529 | ; Distance in meters that shouts should travel. Default is 100m |
529 | shout_distance = 100 | 530 | shout_distance = 100 |
530 | 531 | ||
532 | |||
531 | [EntityTransfer] | 533 | [EntityTransfer] |
532 | ; The maximum distance in regions that an agent is allowed to teleport along the x or y axis | 534 | ; The maximum distance in regions that an agent is allowed to teleport along the x or y axis |
533 | ; This is set to 4095 because current viewers can't handle teleports that are greater than this distance | 535 | ; This is set to 4095 because current viewers can't handle teleports that are greater than this distance |
@@ -554,6 +556,12 @@ | |||
554 | CoalesceMultipleObjectsToInventory = true | 556 | CoalesceMultipleObjectsToInventory = true |
555 | 557 | ||
556 | 558 | ||
559 | [Attachments] | ||
560 | ; Controls whether avatar attachments are enabled. | ||
561 | ; Defaults to true - only set to false for debugging purposes | ||
562 | Enabled = true | ||
563 | |||
564 | |||
557 | [Mesh] | 565 | [Mesh] |
558 | ; enable / disable Collada mesh support | 566 | ; enable / disable Collada mesh support |
559 | ; default is true | 567 | ; default is true |