diff options
Diffstat (limited to 'OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs')
-rw-r--r-- | OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs index 853b004..9935046 100644 --- a/OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs +++ b/OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs | |||
@@ -488,12 +488,12 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory | |||
488 | foreach (AssetBase asset in entity.Assets) | 488 | foreach (AssetBase asset in entity.Assets) |
489 | { | 489 | { |
490 | Rest.Log.DebugFormat("{0} Rest asset: {1} {2} {3}", | 490 | Rest.Log.DebugFormat("{0} Rest asset: {1} {2} {3}", |
491 | MsgId, asset.Metadata.ID, asset.Metadata.Type, asset.Metadata.Name); | 491 | MsgId, asset.ID, asset.Type, asset.Name); |
492 | Rest.AssetServices.AddAsset(asset); | 492 | Rest.AssetServices.AddAsset(asset); |
493 | 493 | ||
494 | created = true; | 494 | created = true; |
495 | rdata.appendStatus(String.Format("<p> Created asset {0}, UUID {1} <p>", | 495 | rdata.appendStatus(String.Format("<p> Created asset {0}, UUID {1} <p>", |
496 | asset.Metadata.Name, asset.Metadata.ID)); | 496 | asset.Name, asset.ID)); |
497 | 497 | ||
498 | if (Rest.DEBUG && Rest.DumpAsset) | 498 | if (Rest.DEBUG && Rest.DumpAsset) |
499 | { | 499 | { |
@@ -691,14 +691,14 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory | |||
691 | foreach (AssetBase asset in entity.Assets) | 691 | foreach (AssetBase asset in entity.Assets) |
692 | { | 692 | { |
693 | Rest.Log.DebugFormat("{0} Rest asset: {1} {2} {3}", | 693 | Rest.Log.DebugFormat("{0} Rest asset: {1} {2} {3}", |
694 | MsgId, asset.Metadata.ID, asset.Metadata.Type, asset.Metadata.Name); | 694 | MsgId, asset.ID, asset.Type, asset.Name); |
695 | 695 | ||
696 | // The asset was validated during the collection process | 696 | // The asset was validated during the collection process |
697 | 697 | ||
698 | Rest.AssetServices.AddAsset(asset); | 698 | Rest.AssetServices.AddAsset(asset); |
699 | 699 | ||
700 | created = true; | 700 | created = true; |
701 | rdata.appendStatus(String.Format("<p> Created asset {0}, UUID {1} <p>", asset.Metadata.Name, asset.Metadata.ID)); | 701 | rdata.appendStatus(String.Format("<p> Created asset {0}, UUID {1} <p>", asset.Name, asset.ID)); |
702 | 702 | ||
703 | if (Rest.DEBUG && Rest.DumpAsset) | 703 | if (Rest.DEBUG && Rest.DumpAsset) |
704 | { | 704 | { |
@@ -1884,10 +1884,10 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory | |||
1884 | 1884 | ||
1885 | asset = new AssetBase(uuid, name); | 1885 | asset = new AssetBase(uuid, name); |
1886 | 1886 | ||
1887 | asset.Metadata.Description = desc; | 1887 | asset.Description = desc; |
1888 | asset.Metadata.Type = type; // type == 0 == texture | 1888 | asset.Type = type; // type == 0 == texture |
1889 | asset.Metadata.Local = local; | 1889 | asset.Local = local; |
1890 | asset.Metadata.Temporary = temp; | 1890 | asset.Temporary = temp; |
1891 | 1891 | ||
1892 | b64string = ic.xml.ReadElementContentAsString(); | 1892 | b64string = ic.xml.ReadElementContentAsString(); |
1893 | 1893 | ||
@@ -2039,10 +2039,10 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory | |||
2039 | 2039 | ||
2040 | if (ic.Asset != null) | 2040 | if (ic.Asset != null) |
2041 | { | 2041 | { |
2042 | if (ic.Asset.Metadata.Name == String.Empty) | 2042 | if (ic.Asset.Name == String.Empty) |
2043 | ic.Asset.Metadata.Name = ic.Item.Name; | 2043 | ic.Asset.Name = ic.Item.Name; |
2044 | if (ic.Asset.Metadata.Description == String.Empty) | 2044 | if (ic.Asset.Description == String.Empty) |
2045 | ic.Asset.Metadata.Description = ic.Item.Description; | 2045 | ic.Asset.Description = ic.Item.Description; |
2046 | } | 2046 | } |
2047 | 2047 | ||
2048 | // Assign permissions | 2048 | // Assign permissions |