Change permissions on child prim inventory items when god mode "force

permissive" is used.
This commit is contained in:
Melanie
2012-10-08 01:34:32 +02:00
parent d5ea203f93
commit 8894f4ad77
2 changed files with 10 additions and 2 deletions

View File

@@ -3422,8 +3422,16 @@ namespace OpenSim.Region.Framework.Scenes
{
RootPart.UpdatePermissions(AgentID, field, localID, mask, addRemTF);
bool god = Scene.Permissions.IsGod(AgentID);
AdjustChildPrimPermissions();
if (field == 1 && god) // Base mask was set. Update all child part inventories
{
foreach (SceneObjectPart part in Parts)
part.Inventory.ApplyGodPermissions(RootPart.BaseMask);
}
HasGroupChanged = true;
// Send the group's properties to all clients once all parts are updated