Minor bug fix in UpdateItem (meta data).

0.6.5-rc1
diva 2009-03-28 23:50:37 +00:00
parent b857635712
commit 730b78114f
1 changed files with 3 additions and 1 deletions

View File

@ -384,6 +384,7 @@ namespace OpenSim.Region.CoreModules.Hypergrid
m_log.DebugFormat("[HGStandaloneInvService]: Update item {0} from {1}", item.ID, item.Owner); m_log.DebugFormat("[HGStandaloneInvService]: Update item {0} from {1}", item.ID, item.Owner);
InventoryItemBase it = m_inventoryService.GetInventoryItem(item.ID); InventoryItemBase it = m_inventoryService.GetInventoryItem(item.ID);
item.CurrentPermissions = it.CurrentPermissions; item.CurrentPermissions = it.CurrentPermissions;
item.AssetID = it.AssetID;
if (m_inventoryService.UpdateItem(item)) if (m_inventoryService.UpdateItem(item))
return item; return item;
else else
@ -500,7 +501,7 @@ namespace OpenSim.Region.CoreModules.Hypergrid
if (theasset != null) if (theasset != null)
{ {
asset = theasset; asset = theasset;
m_log.Debug(" >> Sending assetID " + item.AssetID); //m_log.Debug(" >> Sending assetID " + item.AssetID);
} }
return asset; return asset;
} }
@ -509,6 +510,7 @@ namespace OpenSim.Region.CoreModules.Hypergrid
{ {
m_log.Info("[HGStandaloneInvService]: Post asset " + asset.FullID); m_log.Info("[HGStandaloneInvService]: Post asset " + asset.FullID);
m_assetProvider.CreateAsset(asset); m_assetProvider.CreateAsset(asset);
return true; return true;
} }