diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index d5d8f26..2d90a22 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -4480,7 +4480,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
4480 | if (god) | 4480 | if (god) |
4481 | { | 4481 | { |
4482 | BaseMask = ApplyMask(BaseMask, set, mask); | 4482 | BaseMask = ApplyMask(BaseMask, set, mask); |
4483 | Inventory.ApplyGodPermissions(_baseMask); | 4483 | Inventory.ApplyGodPermissions(BaseMask); |
4484 | } | 4484 | } |
4485 | 4485 | ||
4486 | break; | 4486 | break; |
@@ -4499,7 +4499,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
4499 | case 16: | 4499 | case 16: |
4500 | NextOwnerMask = ApplyMask(NextOwnerMask, set, mask) & | 4500 | NextOwnerMask = ApplyMask(NextOwnerMask, set, mask) & |
4501 | baseMask; | 4501 | baseMask; |
4502 | // Prevent the client from creating no mod, no copy | 4502 | // Prevent the client from creating no copy, no transfer |
4503 | // objects | 4503 | // objects |
4504 | if ((NextOwnerMask & (uint)PermissionMask.Copy) == 0) | 4504 | if ((NextOwnerMask & (uint)PermissionMask.Copy) == 0) |
4505 | NextOwnerMask |= (uint)PermissionMask.Transfer; | 4505 | NextOwnerMask |= (uint)PermissionMask.Transfer; |
@@ -4517,20 +4517,20 @@ namespace OpenSim.Region.Framework.Scenes | |||
4517 | { | 4517 | { |
4518 | bool update = false; | 4518 | bool update = false; |
4519 | 4519 | ||
4520 | if (BaseMask != source.BaseMask || | 4520 | uint prevOwnerMask = OwnerMask; |
4521 | OwnerMask != source.OwnerMask || | 4521 | uint prevGroupMask = GroupMask; |
4522 | GroupMask != source.GroupMask || | 4522 | uint prevEveryoneMask = EveryoneMask; |
4523 | EveryoneMask != source.EveryoneMask || | 4523 | uint prevNextOwnerMask = NextOwnerMask; |
4524 | NextOwnerMask != source.NextOwnerMask) | ||
4525 | update = true; | ||
4526 | 4524 | ||
4527 | BaseMask = source.BaseMask; | 4525 | OwnerMask = source.OwnerMask & BaseMask; |
4528 | OwnerMask = source.OwnerMask; | 4526 | GroupMask = source.GroupMask & BaseMask; |
4529 | GroupMask = source.GroupMask; | 4527 | EveryoneMask = source.EveryoneMask & BaseMask; |
4530 | EveryoneMask = source.EveryoneMask; | 4528 | NextOwnerMask = source.NextOwnerMask & BaseMask; |
4531 | NextOwnerMask = source.NextOwnerMask; | ||
4532 | 4529 | ||
4533 | if (update) | 4530 | if (OwnerMask != prevOwnerMask || |
4531 | GroupMask != prevGroupMask || | ||
4532 | EveryoneMask != prevEveryoneMask || | ||
4533 | NextOwnerMask != prevNextOwnerMask) | ||
4534 | SendFullUpdateToAllClients(); | 4534 | SendFullUpdateToAllClients(); |
4535 | } | 4535 | } |
4536 | 4536 | ||