aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.Inventory.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.Inventory.cs30
1 files changed, 0 insertions, 30 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
index a90c4b3..e3f1636 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
@@ -1873,36 +1873,6 @@ namespace OpenSim.Region.Framework.Scenes
1873 EventManager.TriggerOnAttach(localID, itemID, avatarID); 1873 EventManager.TriggerOnAttach(localID, itemID, avatarID);
1874 } 1874 }
1875 1875
1876 public void DetachSingleAttachmentToGround(UUID itemID, IClientAPI remoteClient)
1877 {
1878 SceneObjectPart part = GetSceneObjectPart(itemID);
1879 if (part == null || part.ParentGroup == null)
1880 return;
1881
1882 UUID inventoryID = part.ParentGroup.GetFromItemID();
1883
1884 ScenePresence presence;
1885 if (TryGetScenePresence(remoteClient.AgentId, out presence))
1886 {
1887 if (!Permissions.CanRezObject(part.ParentGroup.Children.Count, remoteClient.AgentId, presence.AbsolutePosition))
1888 return;
1889
1890 presence.Appearance.DetachAttachment(itemID);
1891 IAvatarFactory ava = RequestModuleInterface<IAvatarFactory>();
1892 if (ava != null)
1893 {
1894 ava.UpdateDatabase(remoteClient.AgentId, presence.Appearance);
1895 }
1896 part.ParentGroup.DetachToGround();
1897
1898 List<UUID> uuids = new List<UUID>();
1899 uuids.Add(inventoryID);
1900 InventoryService.DeleteItems(remoteClient.AgentId, uuids);
1901 remoteClient.SendRemoveInventoryItem(inventoryID);
1902 }
1903 SendAttachEvent(part.ParentGroup.LocalId, itemID, UUID.Zero);
1904 }
1905
1906 public void GetScriptRunning(IClientAPI controllingClient, UUID objectID, UUID itemID) 1876 public void GetScriptRunning(IClientAPI controllingClient, UUID objectID, UUID itemID)
1907 { 1877 {
1908 EventManager.TriggerGetScriptRunning(controllingClient, objectID, itemID); 1878 EventManager.TriggerGetScriptRunning(controllingClient, objectID, itemID);