aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs
diff options
context:
space:
mode:
authorMelanie2011-10-25 03:18:59 +0100
committerMelanie2011-10-25 03:18:59 +0100
commit8639b037e1adce5a1ffd13d5b43be35b30c4d2ae (patch)
tree7d9f3fa917fbbd7bcd84a8cf0b02b3e9bd6715f3 /OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs
parentMerge commit 'bc2da4eaadb0dbf8502d95fc2e40b1fdcc86e218' into bigmerge (diff)
parentredirect UserInventoryHelpers to use a different CreateNotecardAsset() so we ... (diff)
downloadopensim-SC-8639b037e1adce5a1ffd13d5b43be35b30c4d2ae.zip
opensim-SC-8639b037e1adce5a1ffd13d5b43be35b30c4d2ae.tar.gz
opensim-SC-8639b037e1adce5a1ffd13d5b43be35b30c4d2ae.tar.bz2
opensim-SC-8639b037e1adce5a1ffd13d5b43be35b30c4d2ae.tar.xz
Merge commit '30320505fa54640baf4ecaff8bb743f62ef01f86' into bigmerge
Diffstat (limited to '')
-rw-r--r--OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs b/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs
index 0de38c2..fdc60d8 100644
--- a/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs
+++ b/OpenSim/Tests/Common/Helpers/UserInventoryHelpers.cs
@@ -86,11 +86,18 @@ namespace OpenSim.Tests.Common
86 AssetBase asset = null; 86 AssetBase asset = null;
87 87
88 if (type == InventoryType.Notecard) 88 if (type == InventoryType.Notecard)
89 asset = AssetHelpers.CreateNotecardAsset(scene, userId); 89 {
90 asset = AssetHelpers.CreateNotecardAsset();
91 asset.CreatorID = userId.ToString();
92 }
90 else if (type == InventoryType.Object) 93 else if (type == InventoryType.Object)
94 {
91 asset = AssetHelpers.CreateAsset(assetId, SceneHelpers.CreateSceneObject(1, userId)); 95 asset = AssetHelpers.CreateAsset(assetId, SceneHelpers.CreateSceneObject(1, userId));
96 }
92 else 97 else
98 {
93 throw new Exception(string.Format("Inventory type {0} not supported", type)); 99 throw new Exception(string.Format("Inventory type {0} not supported", type));
100 }
94 101
95 scene.AssetService.Store(asset); 102 scene.AssetService.Store(asset);
96 103