diff options
author | Justin Clark-Casey (justincc) | 2010-02-03 16:40:21 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-02-03 16:40:21 +0000 |
commit | daa66c4811be49a0eee843f2bc77a3465da674de (patch) | |
tree | ac7cda5740de33035299c01fede9cfd6a00cfdc3 /OpenSim/Region/Framework/Scenes/EventManager.cs | |
parent | minor: comment out a log line in ScenePresence (diff) | |
download | opensim-SC-daa66c4811be49a0eee843f2bc77a3465da674de.zip opensim-SC-daa66c4811be49a0eee843f2bc77a3465da674de.tar.gz opensim-SC-daa66c4811be49a0eee843f2bc77a3465da674de.tar.bz2 opensim-SC-daa66c4811be49a0eee843f2bc77a3465da674de.tar.xz |
add an IsRoot property to sop
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/EventManager.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/EventManager.cs | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/EventManager.cs b/OpenSim/Region/Framework/Scenes/EventManager.cs index a4a1abc..c50082d 100644 --- a/OpenSim/Region/Framework/Scenes/EventManager.cs +++ b/OpenSim/Region/Framework/Scenes/EventManager.cs | |||
@@ -469,7 +469,21 @@ namespace OpenSim.Region.Framework.Scenes | |||
469 | { | 469 | { |
470 | handlerOnAttach = OnAttach; | 470 | handlerOnAttach = OnAttach; |
471 | if (handlerOnAttach != null) | 471 | if (handlerOnAttach != null) |
472 | handlerOnAttach(localID, itemID, avatarID); | 472 | { |
473 | foreach (Delegate d in handlerOnAttach.GetInvocationList()) | ||
474 | { | ||
475 | try | ||
476 | { | ||
477 | d(localID, itemID, avatarID); | ||
478 | } | ||
479 | catch (Exception e) | ||
480 | { | ||
481 | m_log.ErrorFormat( | ||
482 | "[EVENT MANAGER]: Delegate for TriggerOnAttach failed - continuing. Error was {0} {1}", | ||
483 | e.Message, e.StackTrace); | ||
484 | } | ||
485 | } | ||
486 | } | ||
473 | } | 487 | } |
474 | 488 | ||
475 | public void TriggerGetScriptRunning(IClientAPI controllingClient, UUID objectID, UUID itemID) | 489 | public void TriggerGetScriptRunning(IClientAPI controllingClient, UUID objectID, UUID itemID) |