Another minor bug fix for making notecard/script savings work with old asset servers.
parent
99167c68b1
commit
d8931def06
|
@ -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);
|
||||
|
|
|
@ -195,6 +195,9 @@ namespace OpenSim.Servers.Connectors
|
|||
|
||||
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;
|
||||
|
||||
if (m_Cache != null)
|
||||
|
|
Loading…
Reference in New Issue