From ffdf59a57c936189e3b161b79b4a76a3a9b260bb Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Sat, 22 Oct 2011 02:16:46 +0100 Subject: 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 --- OpenSim/Tests/Common/Helpers/AssetHelpers.cs | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'OpenSim/Tests') 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 } /// - /// Create a notecard asset with a random uuid and dummy text. + /// Create a notecard asset with dummy text and a random owner. /// /// /param> /// - public static AssetBase CreateNotecardAsset(UUID id) + public static AssetBase CreateNotecardAsset(UUID assetId) { - return CreateAsset(id, AssetType.Notecard, "hello", UUID.Random()); + return CreateNotecardAsset(assetId, "hello"); + } + + /// + /// Create a notecard asset with a random owner. + /// + /// /param> + /// + /// + public static AssetBase CreateNotecardAsset(UUID assetId, string text) + { + return CreateAsset(assetId, AssetType.Notecard, text, UUID.Random()); } // /// -- cgit v1.1