From fc462747329379c923bcc38cd11c43823b7e3cf1 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 3 May 2017 19:10:02 +0100 Subject: still another missing conversion btw viewer and OS on groupd owned --- OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/Framework') diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs index 1db6880..4df1f27 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs @@ -236,10 +236,7 @@ namespace OpenSim.Region.Framework.Scenes IList items = new List(Items.Values); foreach (TaskInventoryItem item in items) { - if (groupID != item.GroupID) - { - item.GroupID = groupID; - } + item.GroupID = groupID; } m_items.LockItemsForWrite(false); } @@ -1020,6 +1017,9 @@ namespace OpenSim.Region.Framework.Scenes if (item.GroupPermissions != (uint)PermissionMask.None) item.GroupID = m_part.GroupID; + if(item.OwnerID == UUID.Zero) // viewer to internal enconding of group owned + item.OwnerID = item.GroupID; + if (item.AssetID == UUID.Zero) item.AssetID = m_items[item.ItemID].AssetID; -- cgit v1.1