aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules
diff options
context:
space:
mode:
authorMelanie2011-04-01 18:49:53 +0200
committerMelanie2011-04-01 18:49:53 +0200
commit95e524dde100aa14d71a49ee5d5f0cc4b5fa45f7 (patch)
treec86ac712915c67bd60f2e47b2ac3665702f3e8aa /OpenSim/Region/CoreModules
parentMake the login service's call to the sim time out quicker so we have a (diff)
downloadopensim-SC-95e524dde100aa14d71a49ee5d5f0cc4b5fa45f7.zip
opensim-SC-95e524dde100aa14d71a49ee5d5f0cc4b5fa45f7.tar.gz
opensim-SC-95e524dde100aa14d71a49ee5d5f0cc4b5fa45f7.tar.bz2
opensim-SC-95e524dde100aa14d71a49ee5d5f0cc4b5fa45f7.tar.xz
A stab at making CHANGED_OWNER work
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r--OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs16
1 files changed, 7 insertions, 9 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs
index 108c9a0..0fbd5e7 100644
--- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs
@@ -823,21 +823,19 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
823 } 823 }
824 } 824 }
825 825
826 foreach (SceneObjectPart part in group.Parts)
827 {
828 part.LastOwnerID = part.OwnerID;
829 part.OwnerID = item.Owner;
830 part.Inventory.ChangeInventoryOwner(item.Owner);
831 }
832
826 group.ApplyNextOwnerPermissions(); 833 group.ApplyNextOwnerPermissions();
827 } 834 }
828 } 835 }
829 836
830 foreach (SceneObjectPart part in group.Parts) 837 foreach (SceneObjectPart part in group.Parts)
831 { 838 {
832 // TODO: Remove the magic number badness
833 if ((part.OwnerID != item.Owner) ||
834 (item.CurrentPermissions & 16) != 0 || // Magic number
835 (item.Flags & (uint)InventoryItemFlags.ObjectSlamPerm) != 0)
836 {
837 part.LastOwnerID = part.OwnerID;
838 part.OwnerID = item.Owner;
839 part.Inventory.ChangeInventoryOwner(item.Owner);
840 }
841 if ((item.Flags & (uint)InventoryItemFlags.ObjectOverwriteEveryone) != 0) 839 if ((item.Flags & (uint)InventoryItemFlags.ObjectOverwriteEveryone) != 0)
842 part.EveryoneMask = item.EveryOnePermissions; 840 part.EveryoneMask = item.EveryOnePermissions;
843 if ((item.Flags & (uint)InventoryItemFlags.ObjectOverwriteNextOwner) != 0) 841 if ((item.Flags & (uint)InventoryItemFlags.ObjectOverwriteNextOwner) != 0)