avoid lastOwner beeing the group

This commit is contained in:
UbitUmarov
2017-01-16 19:22:39 +00:00
parent 733072b6a3
commit ffa6c7aae2
3 changed files with 11 additions and 4 deletions

View File

@@ -2228,7 +2228,11 @@ namespace OpenSim.Region.Framework.Scenes
dupe.LocalId = plocalID;
// This may be wrong... it might have to be applied in SceneObjectGroup to the object that's being duplicated.
dupe.LastOwnerID = OwnerID;
if(OwnerID != GroupID)
dupe.LastOwnerID = OwnerID;
else
dupe.LastOwnerID = LastOwnerID; // redundant ?
dupe.RezzerID = RezzerID;
byte[] extraP = new byte[Shape.ExtraParams.Length];
@@ -5246,7 +5250,8 @@ SendFullUpdateToClient(remoteClient, Position) ignores position parameter
//LogPermissions("After ApplyNextOwnerPermissions");
LastOwnerID = OwnerID;
if(OwnerID != GroupID)
LastOwnerID = OwnerID;
OwnerID = item.Owner;
Inventory.ChangeInventoryOwner(item.Owner);
}