diff options
author | Justin Clark-Casey (justincc) | 2010-02-01 20:15:36 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-03-03 18:40:33 +0000 |
commit | 660ebe52cf37828d32647030de940c8928d3c9f2 (patch) | |
tree | ce40e2e81de8b22f0bc3eb8800d0353223acfe7f /OpenSim | |
parent | Make the service loader pump out the error to the log (in red) and include th... (diff) | |
download | opensim-SC-660ebe52cf37828d32647030de940c8928d3c9f2.zip opensim-SC-660ebe52cf37828d32647030de940c8928d3c9f2.tar.gz opensim-SC-660ebe52cf37828d32647030de940c8928d3c9f2.tar.bz2 opensim-SC-660ebe52cf37828d32647030de940c8928d3c9f2.tar.xz |
Actually make EventManager.OnAttach() fire when an object is attached. Previously, only detach was firing!
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneGraph.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs index 369552f..b7fcd7d 100644 --- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs +++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs | |||
@@ -540,6 +540,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
540 | // Fire after attach, so we don't get messy perms dialogs | 540 | // Fire after attach, so we don't get messy perms dialogs |
541 | // 3 == AttachedRez | 541 | // 3 == AttachedRez |
542 | objatt.CreateScriptInstances(0, true, m_parentScene.DefaultScriptEngine, 3); | 542 | objatt.CreateScriptInstances(0, true, m_parentScene.DefaultScriptEngine, 3); |
543 | |||
544 | // Do this last so that event listeners have access to all the effects of the attachment | ||
545 | m_parentScene.EventManager.TriggerOnAttach(objatt.LocalId, itemID, remoteClient.AgentId); | ||
543 | } | 546 | } |
544 | return objatt; | 547 | return objatt; |
545 | } | 548 | } |