diff options
author | Melanie | 2012-02-07 21:09:04 +0000 |
---|---|---|
committer | Melanie | 2012-02-07 21:09:04 +0000 |
commit | 37049180f62d9b284c3ef1892cbf384774f6a2e3 (patch) | |
tree | 6f4a73fdfed2c7750cae6f8691a74ef5a0a8745b /OpenSim/Tests/Common/Helpers/TaskInventoryHelpers.cs | |
parent | Merge branch 'master' into careminster (diff) | |
parent | Add TestAddTaskInventoryItem() (diff) | |
download | opensim-SC-37049180f62d9b284c3ef1892cbf384774f6a2e3.zip opensim-SC-37049180f62d9b284c3ef1892cbf384774f6a2e3.tar.gz opensim-SC-37049180f62d9b284c3ef1892cbf384774f6a2e3.tar.bz2 opensim-SC-37049180f62d9b284c3ef1892cbf384774f6a2e3.tar.xz |
Merge branch 'master' into careminster
Conflicts:
OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
Diffstat (limited to 'OpenSim/Tests/Common/Helpers/TaskInventoryHelpers.cs')
-rw-r--r-- | OpenSim/Tests/Common/Helpers/TaskInventoryHelpers.cs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/OpenSim/Tests/Common/Helpers/TaskInventoryHelpers.cs b/OpenSim/Tests/Common/Helpers/TaskInventoryHelpers.cs index a8f0d59..7058d1e 100644 --- a/OpenSim/Tests/Common/Helpers/TaskInventoryHelpers.cs +++ b/OpenSim/Tests/Common/Helpers/TaskInventoryHelpers.cs | |||
@@ -72,15 +72,21 @@ namespace OpenSim.Tests.Common | |||
72 | /// <param name="sop"></param> | 72 | /// <param name="sop"></param> |
73 | /// <param name="itemName"></param> | 73 | /// <param name="itemName"></param> |
74 | /// <param name="id"></param> | 74 | /// <param name="id"></param> |
75 | public static TaskInventoryItem AddSceneObject(Scene scene, SceneObjectPart sop, string itemName, UUID id) | 75 | /// <param name="userId"></param> |
76 | public static TaskInventoryItem AddSceneObject( | ||
77 | Scene scene, SceneObjectPart sop, string itemName, UUID id, UUID userId) | ||
76 | { | 78 | { |
77 | SceneObjectGroup taskSceneObject = SceneHelpers.CreateSceneObject(1, UUID.Zero); | 79 | SceneObjectGroup taskSceneObject = SceneHelpers.CreateSceneObject(1, UUID.Zero); |
78 | AssetBase taskSceneObjectAsset = AssetHelpers.CreateAsset(0x10, taskSceneObject); | 80 | AssetBase taskSceneObjectAsset = AssetHelpers.CreateAsset(0x10, taskSceneObject); |
79 | scene.AssetService.Store(taskSceneObjectAsset); | 81 | scene.AssetService.Store(taskSceneObjectAsset); |
80 | TaskInventoryItem taskSceneObjectItem | 82 | TaskInventoryItem taskSceneObjectItem |
81 | = new TaskInventoryItem | 83 | = new TaskInventoryItem |
82 | { Name = itemName, AssetID = taskSceneObjectAsset.FullID, ItemID = id, | 84 | { Name = itemName, |
83 | Type = (int)AssetType.Object, InvType = (int)InventoryType.Object }; | 85 | AssetID = taskSceneObjectAsset.FullID, |
86 | ItemID = id, | ||
87 | OwnerID = userId, | ||
88 | Type = (int)AssetType.Object, | ||
89 | InvType = (int)InventoryType.Object }; | ||
84 | sop.Inventory.AddInventoryItem(taskSceneObjectItem, true); | 90 | sop.Inventory.AddInventoryItem(taskSceneObjectItem, true); |
85 | 91 | ||
86 | return taskSceneObjectItem; | 92 | return taskSceneObjectItem; |