mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
use array.Empty<byte>
This commit is contained in:
@@ -1592,7 +1592,7 @@ namespace OpenSim.Data.MySQL
|
||||
if (prim.KeyframeMotion != null)
|
||||
cmd.Parameters.AddWithValue("KeyframeMotion", prim.KeyframeMotion.Serialize());
|
||||
else
|
||||
cmd.Parameters.AddWithValue("KeyframeMotion", new Byte[0]);
|
||||
cmd.Parameters.AddWithValue("KeyframeMotion", Array.Empty<byte>());
|
||||
|
||||
if (prim.PhysicsInertia != null)
|
||||
cmd.Parameters.AddWithValue("PhysInertia", prim.PhysicsInertia.ToXml2());
|
||||
|
||||
@@ -2170,7 +2170,7 @@ namespace OpenSim.Data.SQLite
|
||||
if (prim.KeyframeMotion != null)
|
||||
row["KeyframeMotion"] = prim.KeyframeMotion.Serialize();
|
||||
else
|
||||
row["KeyframeMotion"] = new Byte[0];
|
||||
row["KeyframeMotion"] = Array.Empty<byte>(); ;
|
||||
|
||||
row["PassTouches"] = prim.PassTouches;
|
||||
row["PassCollisions"] = prim.PassCollisions;
|
||||
|
||||
Reference in New Issue
Block a user