Correctly flag group owned prims in the land prim list

This commit is contained in:
Melanie Thielker
2009-04-16 01:01:40 +00:00
parent ac96722c1d
commit 4b85cbf0b6
7 changed files with 11 additions and 8 deletions

View File

@@ -699,6 +699,7 @@ namespace OpenSim.Region.CoreModules.World.Land
if (m_scene.Permissions.CanEditParcel(remote_client.AgentId, this))
{
Dictionary<UUID, int> primCount = new Dictionary<UUID, int>();
List<UUID> groups = new List<UUID>();
lock (primsOverMe)
{
@@ -726,6 +727,8 @@ namespace OpenSim.Region.CoreModules.World.Land
{
m_log.Error("[LAND]: Unable to match a prim with it's owner.");
}
if (obj.OwnerID == obj.GroupID && (!groups.Contains(obj.OwnerID)))
groups.Add(obj.OwnerID);
}
}
catch (InvalidOperationException)
@@ -734,7 +737,7 @@ namespace OpenSim.Region.CoreModules.World.Land
}
}
remote_client.SendLandObjectOwners(landData, primCount);
remote_client.SendLandObjectOwners(landData, groups, primCount);
}
}