aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs
index e8ad0f2..94782f9 100644
--- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs
@@ -277,6 +277,20 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
277 277
278 remoteClient.SendAlertMessage("Script saved"); 278 remoteClient.SendAlertMessage("Script saved");
279 } 279 }
280 else if ((CustomInventoryType)item.InvType == CustomInventoryType.AnimationSet)
281 {
282 AnimationSet animSet = new AnimationSet(data);
283 if (!animSet.Validate(x => {
284 int perms = m_Scene.InventoryService.GetAssetPermissions(remoteClient.AgentId, x);
285 int required = (int)(PermissionMask.Transfer | PermissionMask.Copy);
286 if ((perms & required) != required)
287 return false;
288 return true;
289 }))
290 {
291 data = animSet.ToBytes();
292 }
293 }
280 294
281 AssetBase asset = 295 AssetBase asset =
282 CreateAsset(item.Name, item.Description, (sbyte)item.AssetType, data, remoteClient.AgentId.ToString()); 296 CreateAsset(item.Name, item.Description, (sbyte)item.AssetType, data, remoteClient.AgentId.ToString());