From 915593bfbc2f0d6729efe4dfe8d4c8a3f0fc9fbe Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Fri, 21 Nov 2008 21:16:42 +0000 Subject: * refactor: Rip out SOP inventory from the partial into a separate class * SceneObjectPartInventory.cs isn't a particularly good name but it's probably not got a long life * A proper inventory interface to follow * Parallel changes for other inventory partial classes to follow at a later date --- OpenSim/Region/Environment/Scenes/Scene.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs') diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 221af44..9c29c44 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -4277,8 +4277,8 @@ namespace OpenSim.Region.Environment.Scenes { foreach (SceneObjectPart child in partList) { - child.ChangeInventoryOwner(remoteClient.AgentId); - child.ApplyNextOwnerPermissions(); + child.Inventory.ChangeInventoryOwner(remoteClient.AgentId); + child.Inventory.ApplyNextOwnerPermissions(); } } @@ -4355,13 +4355,13 @@ namespace OpenSim.Region.Environment.Scenes break; case 3: // Sell contents - List invList = part.GetInventoryList(); + List invList = part.Inventory.GetInventoryList(); bool okToSell = true; foreach (UUID invID in invList) { - TaskInventoryItem item = part.GetInventoryItem(invID); + TaskInventoryItem item = part.Inventory.GetInventoryItem(invID); if ((item.CurrentPermissions & (uint)PermissionMask.Transfer) == 0) { -- cgit v1.1