mirror of
https://github.com/opensim/opensim.git
synced 2026-08-14 17:55:39 +08:00
Bug fix in attachments: when attaching from inworld the item's parentFolderID was wrong.
This commit is contained in:
@@ -1736,7 +1736,11 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
item.AssetType = asset.Type;
|
||||
item.InvType = (int)InventoryType.Object;
|
||||
|
||||
item.Folder = UUID.Zero; // Objects folder!
|
||||
InventoryFolderBase folder = InventoryService.GetFolderForType(remoteClient.AgentId, AssetType.Object);
|
||||
if (folder != null)
|
||||
item.Folder = folder.ID;
|
||||
else // oopsies
|
||||
item.Folder = UUID.Zero;
|
||||
|
||||
if ((remoteClient.AgentId != grp.RootPart.OwnerID) && Permissions.PropagatePermissions())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user