aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
diff options
context:
space:
mode:
authorTom2011-09-04 07:06:36 -0700
committerTom2011-09-04 07:06:36 -0700
commit66dec3b8742eff04fbbcc6e3249fe4ba87986500 (patch)
tree76cc708a821d35fac5cdbbce2de304b47064e732 /OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
parentGuard another nullref (diff)
parentFixed BulletSim config files for Linux *.so libraries. (diff)
downloadopensim-SC_OLD-66dec3b8742eff04fbbcc6e3249fe4ba87986500.zip
opensim-SC_OLD-66dec3b8742eff04fbbcc6e3249fe4ba87986500.tar.gz
opensim-SC_OLD-66dec3b8742eff04fbbcc6e3249fe4ba87986500.tar.bz2
opensim-SC_OLD-66dec3b8742eff04fbbcc6e3249fe4ba87986500.tar.xz
Resolve merge commits, stage 1
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs11
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;