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.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
index e111867..8847043 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
@@ -1755,7 +1755,11 @@ namespace OpenSim.Region.Framework.Scenes
1755 item.AssetType = asset.Type; 1755 item.AssetType = asset.Type;
1756 item.InvType = (int)InventoryType.Object; 1756 item.InvType = (int)InventoryType.Object;
1757 1757
1758 item.Folder = UUID.Zero; // Objects folder! 1758 InventoryFolderBase folder = InventoryService.GetFolderForType(remoteClient.AgentId, AssetType.Object);
1759 if (folder != null)
1760 item.Folder = folder.ID;
1761 else // oopsies
1762 item.Folder = UUID.Zero;
1759 1763
1760 if ((remoteClient.AgentId != grp.RootPart.OwnerID) && Permissions.PropagatePermissions()) 1764 if ((remoteClient.AgentId != grp.RootPart.OwnerID) && Permissions.PropagatePermissions())
1761 { 1765 {