From d56a62253b4756ef0b175fee226ad9a9abf0a1ff Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sun, 21 Dec 2008 17:07:45 +0000 Subject: Change XEngine money() event routing to always raise the money() event int he root prim of a linkset --- OpenSim/Region/ScriptEngine/XEngine/EventManager.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'OpenSim/Region/ScriptEngine/XEngine/EventManager.cs') diff --git a/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs b/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs index 67ac0ce..bb939fb 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs @@ -72,6 +72,8 @@ namespace OpenSim.Region.ScriptEngine.XEngine { SceneObjectPart part = myScriptEngine.World.GetSceneObjectPart(objectID); + if (part.ParentGroup != null) + part = part.ParentGroup.RootPart; if (part != null) { -- cgit v1.1