diff options
author | Tom | 2011-09-07 09:42:18 -0700 |
---|---|---|
committer | Tom | 2011-09-07 09:42:18 -0700 |
commit | 03f6734f4367b08e2b181ed68bc80b885e76148f (patch) | |
tree | fa8550771d3b5eb1a0315f107801b332f78bede5 /OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |
parent | Now merging the core changes. (diff) | |
download | opensim-SC-03f6734f4367b08e2b181ed68bc80b885e76148f.zip opensim-SC-03f6734f4367b08e2b181ed68bc80b885e76148f.tar.gz opensim-SC-03f6734f4367b08e2b181ed68bc80b885e76148f.tar.bz2 opensim-SC-03f6734f4367b08e2b181ed68bc80b885e76148f.tar.xz |
First set of merge fixes
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.Inventory.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index 89f3683..63dd550 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |||
@@ -968,24 +968,25 @@ namespace OpenSim.Region.Framework.Scenes | |||
968 | if (part != null) | 968 | if (part != null) |
969 | { | 969 | { |
970 | group = part.ParentGroup; | 970 | group = part.ParentGroup; |
971 | } | 971 | } |
972 | if (part != null && group != null) | 972 | if (part != null && group != null) |
973 | { | 973 | { |
974 | if (!Permissions.CanEditObjectInventory(part.UUID, remoteClient.AgentId)) | 974 | if (!Permissions.CanEditObjectInventory(part.UUID, remoteClient.AgentId)) |
975 | return; | 975 | return; |
976 | 976 | ||
977 | TaskInventoryItem item = group.GetInventoryItem(localID, itemID); | 977 | TaskInventoryItem item = group.GetInventoryItem(localID, itemID); |
978 | if (item == null) | 978 | if (item == null) |
979 | return; | 979 | return; |
980 | 980 | ||
981 | if (item.Type == 10) | 981 | if (item.Type == 10) |
982 | { | 982 | { |
983 | part.RemoveScriptEvents(itemID); | 983 | part.RemoveScriptEvents(itemID); |
984 | EventManager.TriggerRemoveScript(localID, itemID); | 984 | EventManager.TriggerRemoveScript(localID, itemID); |
985 | } | ||
986 | |||
987 | group.RemoveInventoryItem(localID, itemID); | ||
988 | part.GetProperties(remoteClient); | ||
985 | } | 989 | } |
986 | |||
987 | group.RemoveInventoryItem(localID, itemID); | ||
988 | part.GetProperties(remoteClient); | ||
989 | } | 990 | } |
990 | 991 | ||
991 | private InventoryItemBase CreateAgentInventoryItemFromTask(UUID destAgent, SceneObjectPart part, UUID itemId) | 992 | private InventoryItemBase CreateAgentInventoryItemFromTask(UUID destAgent, SceneObjectPart part, UUID itemId) |