aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common/Helpers/AssetHelpers.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-10-22 02:16:46 +0100
committerJustin Clark-Casey (justincc)2011-10-22 02:16:46 +0100
commitffdf59a57c936189e3b161b79b4a76a3a9b260bb (patch)
treec857a6214e291e5b91f1241107b84baa3b9f246f /OpenSim/Tests/Common/Helpers/AssetHelpers.cs
parentredirect UserInventoryHelpers to use a different CreateNotecardAsset() so we ... (diff)
downloadopensim-SC_OLD-ffdf59a57c936189e3b161b79b4a76a3a9b260bb.zip
opensim-SC_OLD-ffdf59a57c936189e3b161b79b4a76a3a9b260bb.tar.gz
opensim-SC_OLD-ffdf59a57c936189e3b161b79b4a76a3a9b260bb.tar.bz2
opensim-SC_OLD-ffdf59a57c936189e3b161b79b4a76a3a9b260bb.tar.xz
Get UUIDGatherer to scan notecards in the graph for asset uuids.
This is to support npc baked texture saving in oars and iars. May address http://opensimulator.org/mantis/view.php?id=5743
Diffstat (limited to 'OpenSim/Tests/Common/Helpers/AssetHelpers.cs')
-rw-r--r--OpenSim/Tests/Common/Helpers/AssetHelpers.cs17
1 files changed, 14 insertions, 3 deletions
diff --git a/OpenSim/Tests/Common/Helpers/AssetHelpers.cs b/OpenSim/Tests/Common/Helpers/AssetHelpers.cs
index efeb973..7af8bed 100644
--- a/OpenSim/Tests/Common/Helpers/AssetHelpers.cs
+++ b/OpenSim/Tests/Common/Helpers/AssetHelpers.cs
@@ -47,13 +47,24 @@ namespace OpenSim.Tests.Common
47 } 47 }
48 48
49 /// <summary> 49 /// <summary>
50 /// Create a notecard asset with a random uuid and dummy text. 50 /// Create a notecard asset with dummy text and a random owner.
51 /// </summary> 51 /// </summary>
52 /// <param name="assetId">/param> 52 /// <param name="assetId">/param>
53 /// <returns></returns> 53 /// <returns></returns>
54 public static AssetBase CreateNotecardAsset(UUID id) 54 public static AssetBase CreateNotecardAsset(UUID assetId)
55 { 55 {
56 return CreateAsset(id, AssetType.Notecard, "hello", UUID.Random()); 56 return CreateNotecardAsset(assetId, "hello");
57 }
58
59 /// <summary>
60 /// Create a notecard asset with a random owner.
61 /// </summary>
62 /// <param name="assetId">/param>
63 /// <param name="text"></param>
64 /// <returns></returns>
65 public static AssetBase CreateNotecardAsset(UUID assetId, string text)
66 {
67 return CreateAsset(assetId, AssetType.Notecard, text, UUID.Random());
57 } 68 }
58 69
59// /// <summary> 70// /// <summary>