use array.Empty<byte>

This commit is contained in:
UbitUmarov
2022-03-12 15:21:24 +00:00
parent 5ffa1801d8
commit e043d8a2eb
45 changed files with 100 additions and 103 deletions

View File

@@ -566,7 +566,7 @@ public class BSShapeMesh : BSShape
if (prim.PrimAssetState == BSPhysObject.PrimAssetCondition.Fetched)
{
// Release the fetched asset data once it has been used.
pbs.SculptData = new byte[0];
pbs.SculptData = Array.Empty<byte>();
prim.PrimAssetState = BSPhysObject.PrimAssetCondition.Unknown;
}
@@ -816,7 +816,7 @@ public class BSShapeHull : BSShape
if (prim.PrimAssetState == BSPhysObject.PrimAssetCondition.Fetched)
{
// Release the fetched asset data once it has been used.
pbs.SculptData = new byte[0];
pbs.SculptData = Array.Empty<byte>();
prim.PrimAssetState = BSPhysObject.PrimAssetCondition.Unknown;
}