Guard against multiple calls to SetOwnerId on one logical ownership change.
parent
bc0fc16f44
commit
34b308d5b6
|
@ -2124,10 +2124,12 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
public void SetOwnerId(UUID userId)
|
public void SetOwnerId(UUID userId)
|
||||||
{
|
{
|
||||||
ForEachPart(delegate(SceneObjectPart part)
|
ForEachPart(delegate(SceneObjectPart part)
|
||||||
|
{
|
||||||
|
if (OwnerID != userId)
|
||||||
{
|
{
|
||||||
part.LastOwnerID = part.OwnerID;
|
part.LastOwnerID = part.OwnerID;
|
||||||
part.OwnerID = userId;
|
part.OwnerID = userId;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue