mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
== UUID.Zero is slow
This commit is contained in:
@@ -185,7 +185,7 @@ namespace OpenSim.Region.PhysicsModule.ubOde
|
||||
|
||||
// check if we got outdated
|
||||
|
||||
if (!pbs.SculptEntry || pbs.SculptTexture == UUID.Zero)
|
||||
if (!pbs.SculptEntry || pbs.SculptTexture.IsZero())
|
||||
{
|
||||
repData.meshState = MeshState.noNeed;
|
||||
return;
|
||||
@@ -256,7 +256,7 @@ namespace OpenSim.Region.PhysicsModule.ubOde
|
||||
if (repData.meshState != MeshState.loadingAsset)
|
||||
return;
|
||||
|
||||
if (repData.assetID == null || repData.assetID == UUID.Zero)
|
||||
if (repData.assetID == null || repData.assetID.Value.IsZero())
|
||||
return;
|
||||
|
||||
if (repData.assetID != repData.pbs.SculptTexture)
|
||||
@@ -527,7 +527,7 @@ namespace OpenSim.Region.PhysicsModule.ubOde
|
||||
{
|
||||
if (pbs.SculptEntry)
|
||||
{
|
||||
if (pbs.SculptTexture == UUID.Zero)
|
||||
if (pbs.SculptTexture.IsZero())
|
||||
return;
|
||||
|
||||
repData.assetID = pbs.SculptTexture;
|
||||
@@ -907,7 +907,7 @@ namespace OpenSim.Region.PhysicsModule.ubOde
|
||||
return;
|
||||
|
||||
UUID assetID = (UUID) repData.assetID;
|
||||
if (assetID == UUID.Zero)
|
||||
if (assetID.IsZero())
|
||||
return;
|
||||
|
||||
repData.meshState = MeshState.loadingAsset;
|
||||
|
||||
Reference in New Issue
Block a user