diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs index 56680df..1f0840d 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | |||
@@ -118,14 +118,17 @@ namespace OpenSim.Region.Framework.Scenes | |||
118 | } | 118 | } |
119 | 119 | ||
120 | /// <summary> | 120 | /// <summary> |
121 | /// Reset UUIDs for all the items in the prim's inventory. This involves either generating | 121 | /// Reset UUIDs for all the items in the prim's inventory. |
122 | /// </summary> | ||
123 | /// <remarks> | ||
124 | /// This involves either generating | ||
122 | /// new ones or setting existing UUIDs to the correct parent UUIDs. | 125 | /// new ones or setting existing UUIDs to the correct parent UUIDs. |
123 | /// | 126 | /// |
124 | /// If this method is called and there are inventory items, then we regard the inventory as having changed. | 127 | /// If this method is called and there are inventory items, then we regard the inventory as having changed. |
125 | /// </summary> | 128 | /// </remarks> |
126 | /// <param name="linkNum">Link number for the part</param> | ||
127 | public void ResetInventoryIDs() | 129 | public void ResetInventoryIDs() |
128 | { | 130 | { |
131 | if (null == m_part) | ||
129 | m_items.LockItemsForWrite(true); | 132 | m_items.LockItemsForWrite(true); |
130 | 133 | ||
131 | if (Items.Count == 0) | 134 | if (Items.Count == 0) |
@@ -212,7 +215,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
212 | // Don't let this set the HasGroupChanged flag for attachments | 215 | // Don't let this set the HasGroupChanged flag for attachments |
213 | // as this happens during rez and we don't want a new asset | 216 | // as this happens during rez and we don't want a new asset |
214 | // for each attachment each time | 217 | // for each attachment each time |
215 | if (!m_part.ParentGroup.RootPart.IsAttachment) | 218 | if (!m_part.ParentGroup.IsAttachment) |
216 | { | 219 | { |
217 | HasInventoryChanged = true; | 220 | HasInventoryChanged = true; |
218 | m_part.ParentGroup.HasGroupChanged = true; | 221 | m_part.ParentGroup.HasGroupChanged = true; |