aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
diff options
context:
space:
mode:
authorUbitUmarov2017-01-16 19:22:39 +0000
committerUbitUmarov2017-01-16 19:22:39 +0000
commitffa6c7aae2266708884ec16d75d7b8b5bae638e5 (patch)
treec109bdaddb55e65941553562a6e274ce93bd9536 /OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
parent chance new effective permissions code to ease aggregation on demand( ie on c... (diff)
downloadopensim-SC_OLD-ffa6c7aae2266708884ec16d75d7b8b5bae638e5.zip
opensim-SC_OLD-ffa6c7aae2266708884ec16d75d7b8b5bae638e5.tar.gz
opensim-SC_OLD-ffa6c7aae2266708884ec16d75d7b8b5bae638e5.tar.bz2
opensim-SC_OLD-ffa6c7aae2266708884ec16d75d7b8b5bae638e5.tar.xz
avoid lastOwner beeing the group
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPart.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index 9f99665..87ce0b7 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -2228,7 +2228,11 @@ namespace OpenSim.Region.Framework.Scenes
2228 dupe.LocalId = plocalID; 2228 dupe.LocalId = plocalID;
2229 2229
2230 // This may be wrong... it might have to be applied in SceneObjectGroup to the object that's being duplicated. 2230 // This may be wrong... it might have to be applied in SceneObjectGroup to the object that's being duplicated.
2231 dupe.LastOwnerID = OwnerID; 2231 if(OwnerID != GroupID)
2232 dupe.LastOwnerID = OwnerID;
2233 else
2234 dupe.LastOwnerID = LastOwnerID; // redundant ?
2235
2232 dupe.RezzerID = RezzerID; 2236 dupe.RezzerID = RezzerID;
2233 2237
2234 byte[] extraP = new byte[Shape.ExtraParams.Length]; 2238 byte[] extraP = new byte[Shape.ExtraParams.Length];
@@ -5246,7 +5250,8 @@ SendFullUpdateToClient(remoteClient, Position) ignores position parameter
5246 5250
5247 //LogPermissions("After ApplyNextOwnerPermissions"); 5251 //LogPermissions("After ApplyNextOwnerPermissions");
5248 5252
5249 LastOwnerID = OwnerID; 5253 if(OwnerID != GroupID)
5254 LastOwnerID = OwnerID;
5250 OwnerID = item.Owner; 5255 OwnerID = item.Owner;
5251 Inventory.ChangeInventoryOwner(item.Owner); 5256 Inventory.ChangeInventoryOwner(item.Owner);
5252 } 5257 }