diff options
-rw-r--r-- | OpenSim/Framework/AssetBase.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Framework/AssetBase.cs b/OpenSim/Framework/AssetBase.cs index eed9703..212f41d 100644 --- a/OpenSim/Framework/AssetBase.cs +++ b/OpenSim/Framework/AssetBase.cs | |||
@@ -51,6 +51,16 @@ namespace OpenSim.Framework | |||
51 | /// </summary> | 51 | /// </summary> |
52 | private AssetMetadata m_metadata; | 52 | private AssetMetadata m_metadata; |
53 | 53 | ||
54 | // This is needed for .NET serialization!!! | ||
55 | // Do NOT "Optimize" away! | ||
56 | public AssetBase() | ||
57 | { | ||
58 | m_metadata = new AssetMetadata(); | ||
59 | m_metadata.FullID = UUID.Zero; | ||
60 | m_metadata.ID = UUID.Zero.ToString(); | ||
61 | m_metadata.Type = (sbyte)AssetType.Unknown; | ||
62 | } | ||
63 | |||
54 | public AssetBase(UUID assetID, string name, sbyte assetType) | 64 | public AssetBase(UUID assetID, string name, sbyte assetType) |
55 | { | 65 | { |
56 | if (assetType == (sbyte)AssetType.Unknown) | 66 | if (assetType == (sbyte)AssetType.Unknown) |