diff options
author | Melanie Thielker | 2017-01-16 14:53:42 +0000 |
---|---|---|
committer | Melanie Thielker | 2017-01-16 14:53:42 +0000 |
commit | 568614af2cee0c9e6cd86dd682c7bc768afe655b (patch) | |
tree | ad04210b5c1cf9f3e61e6cd12f775eb5fbaeba74 /OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |
parent | use of PermissionMask Bit3 for slam was a recent mistake, so make it only bit... (diff) | |
download | opensim-SC-568614af2cee0c9e6cd86dd682c7bc768afe655b.zip opensim-SC-568614af2cee0c9e6cd86dd682c7bc768afe655b.tar.gz opensim-SC-568614af2cee0c9e6cd86dd682c7bc768afe655b.tar.bz2 opensim-SC-568614af2cee0c9e6cd86dd682c7bc768afe655b.tar.xz |
Remove the last instance of the legacy slam but being set
New objects now get only the real slam bit.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index 0d09cef..c1faf21 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |||
@@ -1258,6 +1258,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
1258 | agentItem.InvType = taskItem.InvType; | 1258 | agentItem.InvType = taskItem.InvType; |
1259 | agentItem.Flags = taskItem.Flags; | 1259 | agentItem.Flags = taskItem.Flags; |
1260 | 1260 | ||
1261 | // The code below isn't OK. It doesn't account for flags being changed | ||
1262 | // in the object inventory, so it will break when you do it. That | ||
1263 | // is the previous behaviour, so no matter at this moment. However, there is a lot | ||
1264 | // TODO: Fix this after the inventory fixer exists and has beenr run | ||
1261 | if ((part.OwnerID != destAgent) && Permissions.PropagatePermissions()) | 1265 | if ((part.OwnerID != destAgent) && Permissions.PropagatePermissions()) |
1262 | { | 1266 | { |
1263 | agentItem.BasePermissions = taskItem.BasePermissions & (taskItem.NextPermissions | (uint)PermissionMask.Move); | 1267 | agentItem.BasePermissions = taskItem.BasePermissions & (taskItem.NextPermissions | (uint)PermissionMask.Move); |
@@ -1266,7 +1270,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1266 | else | 1270 | else |
1267 | agentItem.CurrentPermissions = agentItem.BasePermissions & taskItem.CurrentPermissions; | 1271 | agentItem.CurrentPermissions = agentItem.BasePermissions & taskItem.CurrentPermissions; |
1268 | 1272 | ||
1269 | agentItem.CurrentPermissions = agentItem.BasePermissions; | 1273 | agentItem.BasePermissions = agentItem.CurrentPermissions; |
1270 | 1274 | ||
1271 | agentItem.Flags |= (uint)InventoryItemFlags.ObjectSlamPerm; | 1275 | agentItem.Flags |= (uint)InventoryItemFlags.ObjectSlamPerm; |
1272 | agentItem.Flags &= ~(uint)(InventoryItemFlags.ObjectOverwriteBase | InventoryItemFlags.ObjectOverwriteOwner | InventoryItemFlags.ObjectOverwriteGroup | InventoryItemFlags.ObjectOverwriteEveryone | InventoryItemFlags.ObjectOverwriteNextOwner); | 1276 | agentItem.Flags &= ~(uint)(InventoryItemFlags.ObjectOverwriteBase | InventoryItemFlags.ObjectOverwriteOwner | InventoryItemFlags.ObjectOverwriteGroup | InventoryItemFlags.ObjectOverwriteEveryone | InventoryItemFlags.ObjectOverwriteNextOwner); |