Another minor bug fix for making notecard/script savings work with old asset servers.

0.6.6-post-fixes
diva 2009-05-16 00:23:32 +00:00
parent 99167c68b1
commit d8931def06
2 changed files with 5 additions and 2 deletions

View File

@ -193,9 +193,9 @@ namespace OpenSim.Region.Framework.Scenes
AssetBase asset = AssetBase asset =
CreateAsset(item.Name, item.Description, (sbyte)item.AssetType, data); CreateAsset(item.Name, item.Description, (sbyte)item.AssetType, data);
item.AssetID = asset.FullID;
AssetService.Store(asset); AssetService.Store(asset);
item.AssetID = asset.FullID;
userInfo.UpdateItem(item); userInfo.UpdateItem(item);
// remoteClient.SendInventoryItemCreateUpdate(item); // remoteClient.SendInventoryItemCreateUpdate(item);

View File

@ -195,6 +195,9 @@ namespace OpenSim.Servers.Connectors
if (newID != String.Empty) if (newID != String.Empty)
{ {
// Placing this here, so that this work with old asset servers that don't send any reply back
// SynchronousRestObjectRequester returns somethins that is not an empty string
if (!"00000000-0000-0000-0000-000000000000".Equals(newID))
asset.ID = newID; asset.ID = newID;
if (m_Cache != null) if (m_Cache != null)