From d0432133172f4147f7401f214c703611978423cd Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Wed, 27 Jun 2012 00:41:46 +0100
Subject: refactor: Move ScenePresence <-> AgentData attachments copying code
into AttachmentsModule.
---
OpenSim/Region/Framework/Interfaces/IScenePresence.cs | 6 ++++++
1 file changed, 6 insertions(+)
(limited to 'OpenSim/Region/Framework/Interfaces/IScenePresence.cs')
diff --git a/OpenSim/Region/Framework/Interfaces/IScenePresence.cs b/OpenSim/Region/Framework/Interfaces/IScenePresence.cs
index 5e43843..19a8236 100644
--- a/OpenSim/Region/Framework/Interfaces/IScenePresence.cs
+++ b/OpenSim/Region/Framework/Interfaces/IScenePresence.cs
@@ -41,6 +41,12 @@ namespace OpenSim.Region.Framework.Interfaces
public interface IScenePresence : ISceneAgent
{
///
+ /// Copy of the script states while the agent is in transit. This state may
+ /// need to be placed back in case of transfer fail.
+ ///
+ List InTransitScriptStates { get; }
+
+ ///
/// The AttachmentsModule synchronizes on this to avoid race conditions between commands to add and remove attachments.
///
///
--
cgit v1.1
From bfa6896678872a4e796ec4de22e83b6cead3ba17 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Thu, 28 Jun 2012 23:31:23 +0100
Subject: Change AttachmentsModule.DetachSingleAttachmentToInv() to accept a
SOG directly instead of an item ID to then shuffle through attachments,
saving CPU busywork.
Almost all callers already had the sog to hand.
Still checking that it's really an attachment, but now by inspecting SOG.AttachedAvatar
---
OpenSim/Region/Framework/Interfaces/IScenePresence.cs | 4 ++++
1 file changed, 4 insertions(+)
(limited to 'OpenSim/Region/Framework/Interfaces/IScenePresence.cs')
diff --git a/OpenSim/Region/Framework/Interfaces/IScenePresence.cs b/OpenSim/Region/Framework/Interfaces/IScenePresence.cs
index 19a8236..e6b926c 100644
--- a/OpenSim/Region/Framework/Interfaces/IScenePresence.cs
+++ b/OpenSim/Region/Framework/Interfaces/IScenePresence.cs
@@ -72,6 +72,10 @@ namespace OpenSim.Region.Framework.Interfaces
///
List GetAttachments(uint attachmentPoint);
+ ///
+ /// Does this avatar have any attachments?
+ ///
+ ///
bool HasAttachments();
// Don't use these methods directly. Instead, use the AttachmentsModule
--
cgit v1.1