From 5ea6d8d739d9aaf0cbcbe3151a37d50335ac1b8b Mon Sep 17 00:00:00 2001 From: MW Date: Wed, 22 Aug 2007 16:59:13 +0000 Subject: A little bit of cleaning up. --- OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 4 ++-- OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index a9f283f..99bdda9 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs @@ -634,8 +634,8 @@ namespace OpenSim.Region.Environment.Scenes taskItem.desc = item.inventoryDescription; taskItem.owner_id = item.avatarID; taskItem.creator_id = item.creatorsID; - taskItem.type = taskItem.AssetTypes[item.assetType]; - taskItem.inv_type = taskItem.AssetTypes[item.invType]; + taskItem.type = SceneObjectPart.TaskInventoryItem.Types[item.assetType]; + taskItem.inv_type = SceneObjectPart.TaskInventoryItem.Types[item.invType]; part.AddInventoryItem(taskItem); return true; } diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index cbe7b09..7684b4f 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -717,7 +717,7 @@ namespace OpenSim.Region.Environment.Scenes public class TaskInventoryItem { - public string[] AssetTypes = new string[] + public static string[] Types = new string[] { "texture", "sound", @@ -734,7 +734,7 @@ namespace OpenSim.Region.Environment.Scenes }; public LLUUID item_id = LLUUID.Zero; - public LLUUID parent_id = LLUUID.Zero; + public LLUUID parent_id = LLUUID.Zero; //parent folder id public uint base_mask = FULL_MASK_PERMISSIONS; public uint owner_mask = FULL_MASK_PERMISSIONS; -- cgit v1.1