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:
@@ -104,7 +104,7 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap
|
||||
// Swap empty terrain textureIDs with default IDs
|
||||
for(int i = 0; i < textureIDs.Length; i++)
|
||||
{
|
||||
if(textureIDs[i] == UUID.Zero)
|
||||
if(textureIDs[i].IsZero())
|
||||
textureIDs[i] = DEFAULT_TERRAIN_DETAIL[i];
|
||||
}
|
||||
|
||||
|
||||
@@ -687,7 +687,7 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap
|
||||
int color;
|
||||
Color4 ctmp = Color4.White;
|
||||
|
||||
if (face.TextureID == UUID.Zero)
|
||||
if (face.TextureID.IsZero())
|
||||
return warp_Color.White;
|
||||
|
||||
if (!m_colors.TryGetValue(face.TextureID, out color))
|
||||
@@ -788,7 +788,7 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap
|
||||
private warp_Texture GetTexture(UUID id, SceneObjectPart sop)
|
||||
{
|
||||
warp_Texture ret = null;
|
||||
if (id == UUID.Zero)
|
||||
if (id.IsZero())
|
||||
return ret;
|
||||
if (m_warpTextures.TryGetValue(id, out ret))
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user