Fix locking objects

avinationmerge
Melanie 2012-12-16 02:05:01 +01:00
parent 1d713bcdb8
commit 7d8c2b342c
1 changed files with 3 additions and 1 deletions

View File

@ -3449,7 +3449,9 @@ namespace OpenSim.Region.Framework.Scenes
part.ClonePermissions(RootPart);
});
RootPart.OwnerMask = newOwnerMask | foldedPerms;
uint lockMask = ~(uint)PermissionMask.Move;
uint lockBit = RootPart.OwnerMask & (uint)PermissionMask.Move;
RootPart.OwnerMask = (RootPart.OwnerMask & lockBit) | ((newOwnerMask | foldedPerms) & lockMask);
RootPart.ScheduleFullUpdate();
}