aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.Inventory.cs6
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs1
2 files changed, 6 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 {
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
index f918291..66ad14f 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
@@ -1206,6 +1206,7 @@ namespace OpenSim.Region.Framework.Scenes
1206 return; 1206 return;
1207 1207
1208 detachedpos = avatar.AbsolutePosition; 1208 detachedpos = avatar.AbsolutePosition;
1209 RootPart.FromItemID = UUID.Zero;
1209 1210
1210 AbsolutePosition = detachedpos; 1211 AbsolutePosition = detachedpos;
1211 m_rootPart.AttachedAvatar = UUID.Zero; 1212 m_rootPart.AttachedAvatar = UUID.Zero;