!= UUID.Zero is slow

This commit is contained in:
UbitUmarov
2022-01-09 02:28:51 +00:00
parent 7e0fc95c3a
commit da928d6099
78 changed files with 254 additions and 263 deletions

View File

@@ -636,7 +636,7 @@ namespace OpenSim.Region.PhysicsModule.Meshing
Image idata = null;
string decodedSculptFileName = "";
if (cacheSculptMaps && primShape.SculptTexture != UUID.Zero)
if (cacheSculptMaps && !primShape.SculptTexture.IsZero())
{
decodedSculptFileName = System.IO.Path.Combine(decodedSculptMapPath, "smap_" + primShape.SculptTexture.ToString());
try

View File

@@ -3163,7 +3163,7 @@ Console.WriteLine(" JointCreateFixed");
private void CheckMeshAsset()
{
if (_pbs.SculptEntry && !m_assetFailed && _pbs.SculptTexture != UUID.Zero)
if (_pbs.SculptEntry && !m_assetFailed && !_pbs.SculptTexture.IsZero())
{
m_assetFailed = true;
Util.FireAndForget(delegate

View File

@@ -440,7 +440,7 @@ namespace OpenSim.Region.PhysicsModule.ubOde
{
if (pbs.SculptEntry)
{
if (pbs.SculptTexture != null && pbs.SculptTexture != UUID.Zero)
if (pbs.SculptTexture != null && !pbs.SculptTexture.IsZero())
{
repData.assetID = pbs.SculptTexture;
repData.meshState = MeshState.needAsset;