replace calls to SetOwnerId and SetRootPartOwner by a single new SetOwner() so owner is not changed twice on rootpart

This commit is contained in:
UbitUmarov
2017-01-16 20:27:39 +00:00
parent 6735d3496c
commit 180add745c
4 changed files with 27 additions and 6 deletions

View File

@@ -2103,8 +2103,7 @@ namespace OpenSim.Region.Framework.Scenes
if (original.OwnerID != AgentID)
{
copy.SetOwnerId(AgentID);
copy.SetRootPartOwner(copy.RootPart, AgentID, GroupID);
copy.SetOwner(AgentID, GroupID);
SceneObjectPart[] partList = copy.Parts;