mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 03:45:35 +08:00
== UUID.Zero is slow
This commit is contained in:
@@ -332,7 +332,7 @@ namespace OpenSim.Capabilities.Handlers
|
||||
bool doneZeroID = false;
|
||||
foreach(LLSDFetchInventoryDescendents f in fetchFolders)
|
||||
{
|
||||
if (f.folder_id == UUID.Zero)
|
||||
if (f.folder_id.IsZero())
|
||||
{
|
||||
if(doneZeroID)
|
||||
continue;
|
||||
@@ -427,7 +427,7 @@ namespace OpenSim.Capabilities.Handlers
|
||||
|
||||
// The inventory server isn't sending FolderID in the collection...
|
||||
// Must fetch it individually
|
||||
if (contents.FolderID == UUID.Zero)
|
||||
if (contents.FolderID.IsZero())
|
||||
{
|
||||
InventoryFolderBase containingFolder = m_InventoryService.GetFolder(freq.owner_id, freq.folder_id);
|
||||
if (containingFolder == null)
|
||||
|
||||
@@ -84,7 +84,7 @@ namespace OpenSim.Capabilities.Handlers
|
||||
osUTF8 lsl = LLSDxmlEncode2.Start(4096);
|
||||
LLSDxmlEncode2.AddMap(lsl);
|
||||
|
||||
if(m_agentID == UUID.Zero && items.Length > 0)
|
||||
if(m_agentID.IsZero() && items.Length > 0)
|
||||
LLSDxmlEncode2.AddElem("agent_id", items[0].Owner, lsl);
|
||||
else
|
||||
LLSDxmlEncode2.AddElem("agent_id", m_agentID, lsl);
|
||||
|
||||
Reference in New Issue
Block a user