From 5bcf9ae2f97cd1d296b3844100f32ef9d5dc6d6f Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Fri, 24 Sep 2010 23:58:37 +0100 Subject: If the uuid gatherer fails to find the asset containing gesture metadata, then simply return rather than generating an exception This matches existing behaviour, though better diagnostics for missing assets may be good later on. This addresses http://opensimulator.org/mantis/view.php?id=4977 --- OpenSim/Region/Framework/Scenes/UuidGatherer.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Framework/Scenes/UuidGatherer.cs b/OpenSim/Region/Framework/Scenes/UuidGatherer.cs index 65baa52..aee2d10 100644 --- a/OpenSim/Region/Framework/Scenes/UuidGatherer.cs +++ b/OpenSim/Region/Framework/Scenes/UuidGatherer.cs @@ -291,9 +291,16 @@ namespace OpenSim.Region.Framework.Scenes } } + /// + /// Get the asset uuid associated with a gesture + /// + /// + /// protected void GetGestureAssetUuids(UUID gestureUuid, IDictionary assetUuids) { AssetBase assetBase = GetAsset(gestureUuid); + if (null == assetBase) + return; MemoryStream ms = new MemoryStream(assetBase.Data); StreamReader sr = new StreamReader(ms); -- cgit v1.1