diff options
author | Melanie | 2013-01-27 01:07:37 +0000 |
---|---|---|
committer | Melanie | 2013-01-27 01:07:37 +0000 |
commit | 776cc33541d5b0576f28c02953be728ab3154e22 (patch) | |
tree | af99a945d8b393cf74f4112f079ea4df2d8eb8b1 /OpenSim/Region/CoreModules | |
parent | Fix issue where the "set terrain texture" console command did not tell the vi... (diff) | |
download | opensim-SC_OLD-776cc33541d5b0576f28c02953be728ab3154e22.zip opensim-SC_OLD-776cc33541d5b0576f28c02953be728ab3154e22.tar.gz opensim-SC_OLD-776cc33541d5b0576f28c02953be728ab3154e22.tar.bz2 opensim-SC_OLD-776cc33541d5b0576f28c02953be728ab3154e22.tar.xz |
Prevent items being destroyed by rename operations. Renaming of a wearable also
sends an asset transaciton but it is empty. So we can't ignore name data
when a transaction is present and can't treat every transaction as valid.
Conflicts:
OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetXferUploader.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetXferUploader.cs b/OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetXferUploader.cs index 8add4bb..11efe6d 100644 --- a/OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetXferUploader.cs +++ b/OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetXferUploader.cs | |||
@@ -321,7 +321,8 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction | |||
321 | // to avoid a race condition when the appearance module retrieves the item to set the asset id in | 321 | // to avoid a race condition when the appearance module retrieves the item to set the asset id in |
322 | // the AvatarAppearance structure. | 322 | // the AvatarAppearance structure. |
323 | item.AssetID = m_asset.FullID; | 323 | item.AssetID = m_asset.FullID; |
324 | m_Scene.InventoryService.UpdateItem(item); | 324 | if (item.AssetID != UUID.Zero) |
325 | m_Scene.InventoryService.UpdateItem(item); | ||
325 | 326 | ||
326 | if (m_uploadState == UploadState.Complete) | 327 | if (m_uploadState == UploadState.Complete) |
327 | { | 328 | { |