Fix locking objects
parent
1d713bcdb8
commit
7d8c2b342c
|
@ -3449,7 +3449,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
part.ClonePermissions(RootPart);
|
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();
|
RootPart.ScheduleFullUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue