mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Remove pointless cluttering SOP.ParentGroup != null checks.
The only times when ParentGroup might be null is during regression tests (which might not be a valid thing) and when scene objects are being constructed from the database. At all other times it's not possible for a SOP not to have a SOG parent.
This commit is contained in:
@@ -112,15 +112,17 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reset UUIDs for all the items in the prim's inventory. This involves either generating
|
||||
/// Reset UUIDs for all the items in the prim's inventory.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This involves either generating
|
||||
/// new ones or setting existing UUIDs to the correct parent UUIDs.
|
||||
///
|
||||
/// If this method is called and there are inventory items, then we regard the inventory as having changed.
|
||||
/// </summary>
|
||||
/// <param name="linkNum">Link number for the part</param>
|
||||
/// </remarks>
|
||||
public void ResetInventoryIDs()
|
||||
{
|
||||
if (null == m_part || null == m_part.ParentGroup)
|
||||
if (null == m_part)
|
||||
return;
|
||||
|
||||
lock (m_items)
|
||||
|
||||
Reference in New Issue
Block a user