diff options
author | Justin Clark-Casey (justincc) | 2010-02-01 20:15:36 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-02-01 20:15:36 +0000 |
commit | 4c1740f7d8e4e577167a84438cce83a7cc32f56d (patch) | |
tree | 59539c8d489bdaffc14c2fa7acc5718bf0b189f2 /OpenSim/Region/Framework/Scenes/SceneGraph.cs | |
parent | Don't try to start attachment scripts or send updates if the attachment itsel... (diff) | |
download | opensim-SC_OLD-4c1740f7d8e4e577167a84438cce83a7cc32f56d.zip opensim-SC_OLD-4c1740f7d8e4e577167a84438cce83a7cc32f56d.tar.gz opensim-SC_OLD-4c1740f7d8e4e577167a84438cce83a7cc32f56d.tar.bz2 opensim-SC_OLD-4c1740f7d8e4e577167a84438cce83a7cc32f56d.tar.xz |
Actually make EventManager.OnAttach() fire when an object is attached. Previously, only detach was firing!
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneGraph.cs')
-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 fc2798d..1ac061a 100644 --- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs +++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs | |||
@@ -528,6 +528,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
528 | // Fire after attach, so we don't get messy perms dialogs | 528 | // Fire after attach, so we don't get messy perms dialogs |
529 | // 3 == AttachedRez | 529 | // 3 == AttachedRez |
530 | objatt.CreateScriptInstances(0, true, m_parentScene.DefaultScriptEngine, 3); | 530 | objatt.CreateScriptInstances(0, true, m_parentScene.DefaultScriptEngine, 3); |
531 | |||
532 | // Do this last so that event listeners have access to all the effects of the attachment | ||
533 | m_parentScene.EventManager.TriggerOnAttach(objatt.LocalId, itemID, remoteClient.AgentId); | ||
531 | } | 534 | } |
532 | } | 535 | } |
533 | 536 | ||