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 cc7b648..4180d5e 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
@@ -1736,7 +1736,11 @@ namespace OpenSim.Region.Framework.Scenes
1736 item.AssetType = asset.Type; 1736 item.AssetType = asset.Type;
1737 item.InvType = (int)InventoryType.Object; 1737 item.InvType = (int)InventoryType.Object;
1738 1738
1739 item.Folder = UUID.Zero; // Objects folder! 1739 InventoryFolderBase folder = InventoryService.GetFolderForType(remoteClient.AgentId, AssetType.Object);
1740 if (folder != null)
1741 item.Folder = folder.ID;
1742 else // oopsies
1743 item.Folder = UUID.Zero;
1740 1744
1741 if ((remoteClient.AgentId != grp.RootPart.OwnerID) && Permissions.PropagatePermissions()) 1745 if ((remoteClient.AgentId != grp.RootPart.OwnerID) && Permissions.PropagatePermissions())
1742 { 1746 {