* Rewired Touch to route to group/part (Still triggering EventManager as well)

This commit is contained in:
lbsa71
2007-09-20 05:22:18 +00:00
parent 4ce0c0794a
commit 3c7161d128
4 changed files with 19 additions and 26 deletions

View File

@@ -516,6 +516,20 @@ namespace OpenSim.Region.Environment.Scenes
public virtual void ProcessObjectGrab(uint localID, LLVector3 offsetPos, IClientAPI remoteClient)
{
EventManager.TriggerObjectGrab(localID, offsetPos, remoteClient);
foreach (EntityBase ent in Entities.Values)
{
if (ent is SceneObjectGroup)
{
SceneObjectGroup obj = ent as SceneObjectGroup;
if( obj.HasChildPrim( localID ) )
{
obj.ObjectGrabHandler(localID, offsetPos, remoteClient);
return;
}
}
}
}
}
}

View File

@@ -133,7 +133,9 @@ namespace OpenSim.Region.Environment.Scenes
public void TriggerObjectGrab(uint localID, LLVector3 offsetPos, IClientAPI remoteClient)
{
if (OnObjectGrab != null)
{
OnObjectGrab(localID, offsetPos, remoteClient);
}
}
public void TriggerRezScript(uint localID, LLUUID itemID, string script)