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 =
|
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);
|
||||||
|
|
|
@ -195,7 +195,10 @@ namespace OpenSim.Servers.Connectors
|
||||||
|
|
||||||
if (newID != String.Empty)
|
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)
|
if (m_Cache != null)
|
||||||
m_Cache.Cache(asset);
|
m_Cache.Cache(asset);
|
||||||
|
|
Loading…
Reference in New Issue