If setting SOG.UUID, update the SOG.m_parts index as well as the root part UUID

Being able to change a SOG.UUID is useful for region modules that want to supply their own UUID, before the object is rezzed
prebuild-update
Justin Clark-Casey (justincc) 2010-08-25 23:05:54 +01:00
parent 46c6c35d48
commit 24d06b12c2
1 changed files with 10 additions and 1 deletions

View File

@ -335,7 +335,16 @@ namespace OpenSim.Region.Framework.Scenes
public override UUID UUID
{
get { return m_rootPart.UUID; }
set { m_rootPart.UUID = value; }
set
{
m_rootPart.UUID = value;
lock (m_parts)
{
m_parts.Remove(m_rootPart.UUID);
m_parts.Add(m_rootPart.UUID, m_rootPart);
}
}
}
public UUID OwnerID