mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user