Don't fart when deserializing a prim with no ParentGroup set yet

avinationmerge
meta7 2010-09-15 07:59:28 -07:00
parent 7f7bbbb84a
commit 1f74f013b2
1 changed files with 5 additions and 1 deletions

View File

@ -132,7 +132,11 @@ namespace OpenSim.Region.Framework.Scenes
} }
HasInventoryChanged = true; HasInventoryChanged = true;
if (m_part.ParentGroup != null)
{
m_part.ParentGroup.HasGroupChanged = true; m_part.ParentGroup.HasGroupChanged = true;
}
IList<TaskInventoryItem> items = new List<TaskInventoryItem>(Items.Values); IList<TaskInventoryItem> items = new List<TaskInventoryItem>(Items.Values);
Items.Clear(); Items.Clear();