mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
!= UUID.Zero is slow
This commit is contained in:
@@ -61,7 +61,6 @@ namespace OpenSim.Region.DataSnapshot
|
||||
|
||||
public void OnGetSnapshot(IOSHttpRequest req, IOSHttpResponse resp)
|
||||
{
|
||||
Hashtable reply = new Hashtable();
|
||||
string reqtag;
|
||||
if(req.QueryAsDictionary.TryGetValue("region", out string snapObj) && !string.IsNullOrWhiteSpace(snapObj))
|
||||
reqtag = snapObj + req.RemoteIPEndPoint.Address.ToString();
|
||||
|
||||
@@ -222,7 +222,7 @@ namespace OpenSim.Region.DataSnapshot.Providers
|
||||
//TODO: figure how to figure out teleport system landData.landingType
|
||||
|
||||
//land texture snapshot uuid
|
||||
if (parcel.SnapshotID != UUID.Zero)
|
||||
if (!parcel.SnapshotID.IsZero())
|
||||
{
|
||||
XmlNode textureuuid = nodeFactory.CreateNode(XmlNodeType.Element, "image", "");
|
||||
textureuuid.InnerText = parcel.SnapshotID.ToString();
|
||||
@@ -232,7 +232,7 @@ namespace OpenSim.Region.DataSnapshot.Providers
|
||||
string groupName = String.Empty;
|
||||
|
||||
//attached user and group
|
||||
if (parcel.GroupID != UUID.Zero)
|
||||
if (!parcel.GroupID.IsZero())
|
||||
{
|
||||
XmlNode groupblock = nodeFactory.CreateNode(XmlNodeType.Element, "group", "");
|
||||
XmlNode groupuuid = nodeFactory.CreateNode(XmlNodeType.Element, "groupuuid", "");
|
||||
|
||||
@@ -219,9 +219,9 @@ namespace OpenSim.Region.DataSnapshot.Providers
|
||||
if (textures != null)
|
||||
{
|
||||
if (textures.DefaultTexture != null &&
|
||||
textures.DefaultTexture.TextureID != UUID.Zero &&
|
||||
textures.DefaultTexture.TextureID != m_DefaultImage &&
|
||||
textures.DefaultTexture.TextureID != m_BlankImage &&
|
||||
!textures.DefaultTexture.TextureID.IsZero() &&
|
||||
textures.DefaultTexture.TextureID.NotEqual(m_DefaultImage) &&
|
||||
textures.DefaultTexture.TextureID.NotEqual(m_BlankImage) &&
|
||||
textures.DefaultTexture.RGBA.A < 50f)
|
||||
{
|
||||
counts[textures.DefaultTexture.TextureID] = 8;
|
||||
|
||||
Reference in New Issue
Block a user