Yet another commit related to the SceneObject rewrites.

afrisby
MW 2007-08-03 16:17:05 +00:00
parent c9a5d4bc4b
commit 0975ff6cfd
2 changed files with 12 additions and 5 deletions

View File

@ -52,6 +52,14 @@ namespace OpenSim.Region.Environment.Scenes
} }
/// <summary>
///
/// </summary>
public AllNewSceneObjectGroup2(byte[] data)
{
}
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
@ -67,6 +75,7 @@ namespace OpenSim.Region.Environment.Scenes
this.SetPartAsRoot(newPart); this.SetPartAsRoot(newPart);
} }
#region Copying #region Copying
/// <summary> /// <summary>
/// ///
@ -102,7 +111,7 @@ namespace OpenSim.Region.Environment.Scenes
{ {
AllNewSceneObjectPart2 newPart = part.Copy(m_scene); AllNewSceneObjectPart2 newPart = part.Copy(m_scene);
this.m_parts.Add(newPart.UUID, newPart); this.m_parts.Add(newPart.UUID, newPart);
newPart.ParentID = this.m_rootPart.LocalID; this.SetPartAsNonRoot(newPart);
} }
#endregion #endregion
@ -499,7 +508,7 @@ namespace OpenSim.Region.Environment.Scenes
/// <param name="part"></param> /// <param name="part"></param>
private void SetPartAsNonRoot(AllNewSceneObjectPart2 part) private void SetPartAsNonRoot(AllNewSceneObjectPart2 part)
{ {
part.ParentID = this.m_rootPart.LocalID;
} }
/// <summary> /// <summary>

View File

@ -296,7 +296,7 @@ namespace OpenSim.Region.Environment.Scenes
} }
/// <summary> /// <summary>
/// Recreate a SceneObjectPart (prim) /// Re/create a SceneObjectPart (prim)
/// </summary> /// </summary>
/// <param name="regionHandle"></param> /// <param name="regionHandle"></param>
/// <param name="parent"></param> /// <param name="parent"></param>
@ -553,8 +553,6 @@ namespace OpenSim.Region.Environment.Scenes
remoteClient.SendPrimTerseUpdate(m_regionHandle, 64096, LocalID, lPos, mRot); remoteClient.SendPrimTerseUpdate(m_regionHandle, 64096, LocalID, lPos, mRot);
} }
#endregion #endregion
} }
} }