Explicitly set uploaded mesh object perms
parent
8582b2b992
commit
745a209bf2
|
@ -990,13 +990,20 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||||
else
|
else
|
||||||
prim.Name = assetName + "#" + i.ToString();
|
prim.Name = assetName + "#" + i.ToString();
|
||||||
|
|
||||||
|
prim.EveryoneMask = 0;
|
||||||
|
prim.GroupMask = 0;
|
||||||
|
|
||||||
if (restrictPerms)
|
if (restrictPerms)
|
||||||
{
|
{
|
||||||
prim.BaseMask = (uint)(PermissionMask.Move | PermissionMask.Modify);
|
prim.BaseMask = (uint)(PermissionMask.Move | PermissionMask.Modify);
|
||||||
prim.EveryoneMask = 0;
|
|
||||||
prim.GroupMask = 0;
|
|
||||||
prim.NextOwnerMask = 0;
|
|
||||||
prim.OwnerMask = (uint)(PermissionMask.Move | PermissionMask.Modify);
|
prim.OwnerMask = (uint)(PermissionMask.Move | PermissionMask.Modify);
|
||||||
|
prim.NextOwnerMask = 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
prim.BaseMask = (uint)PermissionMask.All | (uint)PermissionMask.Export;
|
||||||
|
prim.OwnerMask = (uint)PermissionMask.All | (uint)PermissionMask.Export;
|
||||||
|
prim.NextOwnerMask = (uint)PermissionMask.Transfer;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(istest)
|
if(istest)
|
||||||
|
@ -1099,21 +1106,17 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||||
|
|
||||||
if (restrictPerms)
|
if (restrictPerms)
|
||||||
{
|
{
|
||||||
item.CurrentPermissions
|
|
||||||
= (uint)(PermissionMask.Move | PermissionMask.Modify);
|
|
||||||
|
|
||||||
item.BasePermissions = (uint)(PermissionMask.Move | PermissionMask.Modify);
|
item.BasePermissions = (uint)(PermissionMask.Move | PermissionMask.Modify);
|
||||||
|
item.CurrentPermissions = (uint)(PermissionMask.Move | PermissionMask.Modify);
|
||||||
item.EveryOnePermissions = 0;
|
item.EveryOnePermissions = 0;
|
||||||
item.NextPermissions = 0;
|
item.NextPermissions = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
item.CurrentPermissions
|
|
||||||
= (uint)(PermissionMask.Move | PermissionMask.Copy | PermissionMask.Modify | PermissionMask.Transfer | PermissionMask.Export);
|
|
||||||
|
|
||||||
item.BasePermissions = (uint)PermissionMask.All | (uint)PermissionMask.Export;
|
item.BasePermissions = (uint)PermissionMask.All | (uint)PermissionMask.Export;
|
||||||
|
item.CurrentPermissions = (uint)PermissionMask.All | (uint)PermissionMask.Export;
|
||||||
item.EveryOnePermissions = 0;
|
item.EveryOnePermissions = 0;
|
||||||
item.NextPermissions = (uint)PermissionMask.All;
|
item.NextPermissions = (uint)PermissionMask.Transfer;
|
||||||
}
|
}
|
||||||
|
|
||||||
item.CreationDate = Util.UnixTimeSinceEpoch();
|
item.CreationDate = Util.UnixTimeSinceEpoch();
|
||||||
|
|
Loading…
Reference in New Issue