diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 2 | ||||
-rw-r--r-- | OpenSim/Servers/Connectors/Asset/AssetServiceConnector.cs | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index 0694576..965b12a 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |||
@@ -193,9 +193,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
193 | 193 | ||
194 | AssetBase asset = | 194 | AssetBase asset = |
195 | CreateAsset(item.Name, item.Description, (sbyte)item.AssetType, data); | 195 | CreateAsset(item.Name, item.Description, (sbyte)item.AssetType, data); |
196 | item.AssetID = asset.FullID; | ||
196 | AssetService.Store(asset); | 197 | AssetService.Store(asset); |
197 | 198 | ||
198 | item.AssetID = asset.FullID; | ||
199 | userInfo.UpdateItem(item); | 199 | userInfo.UpdateItem(item); |
200 | 200 | ||
201 | // remoteClient.SendInventoryItemCreateUpdate(item); | 201 | // remoteClient.SendInventoryItemCreateUpdate(item); |
diff --git a/OpenSim/Servers/Connectors/Asset/AssetServiceConnector.cs b/OpenSim/Servers/Connectors/Asset/AssetServiceConnector.cs index efd5eea..cebd471 100644 --- a/OpenSim/Servers/Connectors/Asset/AssetServiceConnector.cs +++ b/OpenSim/Servers/Connectors/Asset/AssetServiceConnector.cs | |||
@@ -195,7 +195,10 @@ namespace OpenSim.Servers.Connectors | |||
195 | 195 | ||
196 | if (newID != String.Empty) | 196 | if (newID != String.Empty) |
197 | { | 197 | { |
198 | asset.ID = newID; | 198 | // Placing this here, so that this work with old asset servers that don't send any reply back |
199 | // SynchronousRestObjectRequester returns somethins that is not an empty string | ||
200 | if (!"00000000-0000-0000-0000-000000000000".Equals(newID)) | ||
201 | asset.ID = newID; | ||
199 | 202 | ||
200 | if (m_Cache != null) | 203 | if (m_Cache != null) |
201 | m_Cache.Cache(asset); | 204 | m_Cache.Cache(asset); |