refactor: Move DetachSingleAttachmentToInv to region module

need to rationalize method names later
This commit is contained in:
Justin Clark-Casey (justincc)
2010-03-06 00:07:47 +00:00
parent e7422fe9b2
commit 395f343498
6 changed files with 82 additions and 78 deletions

View File

@@ -2931,8 +2931,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
ScenePresence presence = World.GetScenePresence(m_host.OwnerID);
m_ScriptEngine.World.DetachSingleAttachmentToInv(itemID,
presence.ControllingClient);
IAttachmentsModule attachmentsModule = m_ScriptEngine.World.AttachmentsModule;
if (attachmentsModule != null)
attachmentsModule.ShowDetachInUserInventory(itemID, presence.ControllingClient);
}
}