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 =
CreateAsset(item.Name, item.Description, (sbyte)item.AssetType, data);
item.AssetID = asset.FullID;
AssetService.Store(asset);
item.AssetID = asset.FullID;
userInfo.UpdateItem(item);
// remoteClient.SendInventoryItemCreateUpdate(item);

View File

@ -195,7 +195,10 @@ namespace OpenSim.Servers.Connectors
if (newID != String.Empty)
{
asset.ID = newID;
// 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;
if (m_Cache != null)
m_Cache.Cache(asset);