Rezzing multiple copies of a inventory prim should now work.
parent
2852cd9d73
commit
0a2425432a
|
@ -484,6 +484,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
private void AddRezObject(string xmlData, LLVector3 pos)
|
private void AddRezObject(string xmlData, LLVector3 pos)
|
||||||
{
|
{
|
||||||
SceneObjectGroup group = new SceneObjectGroup(this, m_regionHandle, xmlData);
|
SceneObjectGroup group = new SceneObjectGroup(this, m_regionHandle, xmlData);
|
||||||
|
group.GenerateNewIDs();
|
||||||
AddEntity(group);
|
AddEntity(group);
|
||||||
group.AbsolutePosition = pos;
|
group.AbsolutePosition = pos;
|
||||||
SceneObjectPart rootPart = group.GetChildPart(group.UUID);
|
SceneObjectPart rootPart = group.GetChildPart(group.UUID);
|
||||||
|
|
|
@ -598,6 +598,17 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
SetPartAsNonRoot(newPart);
|
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>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue