From dbc0dfa606b7a344e1b7daf3653c360656f9b319 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sat, 27 Sep 2014 22:18:43 +0200 Subject: [PATCH] Also fetch and store old asset for animation sets --- .../Agent/AssetTransaction/AgentAssetsTransactions.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/CoreModules/Agent/AssetTransaction/AgentAssetsTransactions.cs b/OpenSim/Region/CoreModules/Agent/AssetTransaction/AgentAssetsTransactions.cs index 96c7e8c1f7..1a19585eeb 100644 --- a/OpenSim/Region/CoreModules/Agent/AssetTransaction/AgentAssetsTransactions.cs +++ b/OpenSim/Region/CoreModules/Agent/AssetTransaction/AgentAssetsTransactions.cs @@ -175,7 +175,8 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction // Here we need to get the old asset to extract the // texture UUIDs if it's a wearable. if (item.Type == (int)AssetType.Bodypart || - item.Type == (int)AssetType.Clothing) + item.Type == (int)AssetType.Clothing || + item.Type == (int)CustomAssetType.AnimationSet) { AssetBase oldAsset = m_Scene.AssetService.Get(item.AssetID.ToString()); if (oldAsset != null) @@ -193,7 +194,8 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction // Here we need to get the old asset to extract the // texture UUIDs if it's a wearable. if (item.AssetType == (int)AssetType.Bodypart || - item.AssetType == (int)AssetType.Clothing) + item.AssetType == (int)AssetType.Clothing || + item.AssetType == (int)CustomAssetType.AnimationSet) { AssetBase oldAsset = m_Scene.AssetService.Get(item.AssetID.ToString()); if (oldAsset != null)