From f6ce87c96d037787963d203346c5cb1a1dd52747 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Fri, 28 Jun 2013 18:50:33 +0100 Subject: Reinsert code for gathering uuids reference by materials back directly into UuidGatherer for now. This cannot be triggered as an event from Scene.EventManager since some invocations of UuidGatherer (e.g. IAR saving) use scene objects which are not in scenes. There needs to be some way for modules to register for events which are not connected with a particular scene. --- OpenSim/Region/Framework/Scenes/EventManager.cs | 58 ++++++++++++------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes/EventManager.cs') diff --git a/OpenSim/Region/Framework/Scenes/EventManager.cs b/OpenSim/Region/Framework/Scenes/EventManager.cs index 720bfa9..61b0ebd 100644 --- a/OpenSim/Region/Framework/Scenes/EventManager.cs +++ b/OpenSim/Region/Framework/Scenes/EventManager.cs @@ -1021,15 +1021,15 @@ namespace OpenSim.Region.Framework.Scenes /// public event TeleportFail OnTeleportFail; - public delegate void GatherUuids(SceneObjectPart sop, IDictionary assetUuids); - - /// - /// Triggered when UUIDs referenced by a scene object are being gathered for archiving, hg transfer, etc. - /// - /// - /// The listener should add references to the IDictionary as appropriate. - /// - public event GatherUuids OnGatherUuids; +// public delegate void GatherUuids(SceneObjectPart sop, IDictionary assetUuids); +// +// /// +// /// Triggered when UUIDs referenced by a scene object are being gathered for archiving, hg transfer, etc. +// /// +// /// +// /// The listener should add references to the IDictionary as appropriate. +// /// +// public event GatherUuids OnGatherUuids; public class MoneyTransferArgs : EventArgs { @@ -3248,25 +3248,25 @@ namespace OpenSim.Region.Framework.Scenes } } - public void TriggerGatherUuids(SceneObjectPart sop, IDictionary assetUuids) - { - GatherUuids handler = OnGatherUuids; - - if (handler != null) - { - foreach (GatherUuids d in handler.GetInvocationList()) - { - try - { - d(sop, assetUuids); - } - catch (Exception e) - { - m_log.ErrorFormat("[EVENT MANAGER]: Delegate for TriggerUuidGather failed - continuing {0} - {1}", - e.Message, e.StackTrace); - } - } - } - } +// public void TriggerGatherUuids(SceneObjectPart sop, IDictionary assetUuids) +// { +// GatherUuids handler = OnGatherUuids; +// +// if (handler != null) +// { +// foreach (GatherUuids d in handler.GetInvocationList()) +// { +// try +// { +// d(sop, assetUuids); +// } +// catch (Exception e) +// { +// m_log.ErrorFormat("[EVENT MANAGER]: Delegate for TriggerUuidGather failed - continuing {0} - {1}", +// e.Message, e.StackTrace); +// } +// } +// } +// } } } -- cgit v1.1