Mark AssetBase.Metadata with [XmlIgnore]
parent
bd41639a68
commit
4a21d92668
|
@ -26,6 +26,7 @@
|
|||
*/
|
||||
|
||||
using System;
|
||||
using System.Xml.Serialization;
|
||||
using OpenMetaverse;
|
||||
|
||||
namespace OpenSim.Framework
|
||||
|
@ -96,16 +97,11 @@ namespace OpenSim.Framework
|
|||
set { m_metadata.Temporary = value; }
|
||||
}
|
||||
|
||||
// We have methods here because properties are serialized, and we don't
|
||||
// want that.
|
||||
public virtual AssetMetadata getMetadata()
|
||||
[XmlIgnore]
|
||||
public AssetMetadata Metadata
|
||||
{
|
||||
return m_metadata;
|
||||
}
|
||||
|
||||
public virtual void setMetadata(AssetMetadata metadata)
|
||||
{
|
||||
m_metadata = metadata;
|
||||
get { return m_metadata; }
|
||||
set { m_metadata = value; }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.OpenSim
|
|||
if (asset == null) ret = BackendResponse.NotFound;
|
||||
else
|
||||
{
|
||||
metadata = asset.getMetadata();
|
||||
metadata = asset.Metadata;
|
||||
ret = BackendResponse.Success;
|
||||
}
|
||||
|
||||
|
|
|
@ -97,7 +97,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.Simple
|
|||
public BackendResponse TryFetchDataMetadata(UUID assetID, out AssetBase asset)
|
||||
{
|
||||
asset = new AssetBase();
|
||||
AssetMetadata metadata = asset.getMetadata();
|
||||
AssetMetadata metadata = asset.Metadata;
|
||||
|
||||
string filename;
|
||||
BackendResponse ret;
|
||||
|
@ -139,7 +139,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Plugins.Simple
|
|||
public BackendResponse TryCreateAsset(AssetBase asset)
|
||||
{
|
||||
BackendResponse ret;
|
||||
AssetMetadata metadata = asset.getMetadata();
|
||||
AssetMetadata metadata = asset.Metadata;
|
||||
|
||||
string path;
|
||||
string filename = String.Format("{0}.{1}", asset.FullID, Utils.ContentTypeToExtension(metadata.ContentType));
|
||||
|
|
Loading…
Reference in New Issue