mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
== UUID.Zero is slow
This commit is contained in:
@@ -65,7 +65,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
}
|
||||
catch { }
|
||||
|
||||
if (itemID == UUID.Zero)
|
||||
if (itemID.IsZero())
|
||||
{
|
||||
LLSDAssetUploadError error = new LLSDAssetUploadError();
|
||||
error.message = "failed to recode request";
|
||||
@@ -166,7 +166,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
}
|
||||
catch { }
|
||||
|
||||
if (itemID == UUID.Zero || objectID == UUID.Zero)
|
||||
if (itemID.IsZero() || objectID.IsZero())
|
||||
{
|
||||
LLSDAssetUploadError error = new LLSDAssetUploadError();
|
||||
error.message = "failed to recode request";
|
||||
@@ -312,7 +312,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
|
||||
UUID assetID = OnUpLoad(m_inventoryItemID, m_objectID, data);
|
||||
|
||||
if (assetID == UUID.Zero)
|
||||
if (assetID.IsZero())
|
||||
{
|
||||
LLSDAssetUploadError uperror = new LLSDAssetUploadError();
|
||||
uperror.message = "Failed to update inventory item asset";
|
||||
|
||||
Reference in New Issue
Block a user