Bug fix in attachments: when attaching from inworld the item's parentFolderID was wrong.
parent
1be53b58a7
commit
8fc5eda2c9
|
@ -1736,7 +1736,11 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
item.AssetType = asset.Type;
|
item.AssetType = asset.Type;
|
||||||
item.InvType = (int)InventoryType.Object;
|
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())
|
if ((remoteClient.AgentId != grp.RootPart.OwnerID) && Permissions.PropagatePermissions())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue