refactor: move DeatchObject() into the AttachmentsModule

This commit is contained in:
Justin Clark-Casey (justincc)
2010-04-17 00:00:45 +01:00
parent ab3af43d5e
commit 26e3884237
3 changed files with 24 additions and 6 deletions

View File

@@ -323,6 +323,16 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
}
}
public void DetachObject(uint objectLocalID, IClientAPI remoteClient)
{
SceneObjectGroup group = m_scene.GetGroupByPrim(objectLocalID);
if (group != null)
{
//group.DetachToGround();
ShowDetachInUserInventory(group.GetFromItemID(), remoteClient);
}
}
public void ShowDetachInUserInventory(UUID itemID, IClientAPI remoteClient)
{
ScenePresence presence;