Rezzing multiple copies of a inventory prim should now work.

afrisby
MW 2007-12-01 21:52:10 +00:00
parent 2852cd9d73
commit 0a2425432a
2 changed files with 12 additions and 0 deletions

View File

@ -484,6 +484,7 @@ namespace OpenSim.Region.Environment.Scenes
private void AddRezObject(string xmlData, LLVector3 pos)
{
SceneObjectGroup group = new SceneObjectGroup(this, m_regionHandle, xmlData);
group.GenerateNewIDs();
AddEntity(group);
group.AbsolutePosition = pos;
SceneObjectPart rootPart = group.GetChildPart(group.UUID);

View File

@ -598,6 +598,17 @@ namespace OpenSim.Region.Environment.Scenes
SetPartAsNonRoot(newPart);
}
public void GenerateNewIDs()
{
List<SceneObjectPart> partsList = new List<SceneObjectPart>(m_parts.Values);
m_parts.Clear();
foreach (SceneObjectPart part in partsList)
{
part.UUID = LLUUID.Random();
m_parts.Add(part.UUID, part);
}
}
/// <summary>
///
/// </summary>