make c# more happy
parent
5f57b55dc9
commit
fcad64209c
|
@ -40,12 +40,12 @@ namespace OpenSim.Framework
|
|||
|
||||
public const uint allowedPermitions = (uint)(PermissionMask.Copy | PermissionMask.Modify);
|
||||
|
||||
public uint enforcePermitions(uint currentPerm)
|
||||
public static uint enforcePermition(uint currentPerm)
|
||||
{
|
||||
return currentPerm & allowedPermitions;
|
||||
}
|
||||
|
||||
public void enforceItemPermitions(ref InventoryItemBase it)
|
||||
public static void enforceItemPermitions(ref InventoryItemBase it)
|
||||
{
|
||||
if (it == null)
|
||||
return;
|
||||
|
|
|
@ -1125,10 +1125,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
|||
|
||||
if (inType == (sbyte)CustomInventoryType.AnimationSet)
|
||||
{
|
||||
item.BasePermissions = AnimationSet.allowedPermitions;
|
||||
item.CurrentPermissions = AnimationSet.allowedPermitions;
|
||||
item.EveryOnePermissions = 0;
|
||||
item.NextPermissions = 0;
|
||||
AnimationSet.enforceItemPermitions(ref item);
|
||||
}
|
||||
|
||||
else if (restrictPerms)
|
||||
|
|
Loading…
Reference in New Issue