From 37e11f6cab12471e4414e671f171cc7a68537e6a Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sat, 2 Jul 2022 16:33:39 +0100 Subject: [PATCH] use uuid.IsNotZero is a few more places --- OpenSim/Region/Framework/Scenes/UuidGatherer.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/UuidGatherer.cs b/OpenSim/Region/Framework/Scenes/UuidGatherer.cs index 6d98ff74ee..376413cad0 100644 --- a/OpenSim/Region/Framework/Scenes/UuidGatherer.cs +++ b/OpenSim/Region/Framework/Scenes/UuidGatherer.cs @@ -401,10 +401,10 @@ namespace OpenSim.Region.Framework.Scenes } } - if (!part.Shape.SculptTexture.IsZero()) + if (part.Shape.SculptTexture.IsNotZero()) GatheredUuids[part.Shape.SculptTexture] = (sbyte)AssetType.Texture; - if (!part.Shape.ProjectionTextureUUID.IsZero()) + if (part.Shape.ProjectionTextureUUID.IsNotZero()) GatheredUuids[part.Shape.ProjectionTextureUUID] = (sbyte)AssetType.Texture; UUID collisionSound = part.CollisionSound; @@ -420,7 +420,7 @@ namespace OpenSim.Region.Framework.Scenes try { Primitive.ParticleSystem ps = new Primitive.ParticleSystem(part.ParticleSystem, 0); - if (!ps.Texture.IsZero()) + if (ps.Texture.IsNotZero()) GatheredUuids[ps.Texture] = (sbyte)AssetType.Texture; } catch (Exception) @@ -443,9 +443,7 @@ namespace OpenSim.Region.Framework.Scenes { foreach(UUID id in part.Animations.Keys) { - if(!id.IsZero() && - !ToSkip.Contains(id) && - !FailedUUIDs.Contains(id)) + if(id.IsNotZero() && !ToSkip.Contains(id) && !FailedUUIDs.Contains(id)) { GatheredUuids[id] = (sbyte)AssetType.Animation; }