From 58bbb9487e90ea626f990d2defee40f7de33f57e Mon Sep 17 00:00:00 2001 From: Christopher Date: Sun, 28 Jun 2020 14:16:39 +0200 Subject: [PATCH] try to get script content --- src/TextureFetcher.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/TextureFetcher.cs b/src/TextureFetcher.cs index cf4747f..d3af1b8 100644 --- a/src/TextureFetcher.cs +++ b/src/TextureFetcher.cs @@ -81,7 +81,18 @@ namespace OpenSim.Modules.TextureFetcher { foreach (TaskInventoryItem item in part.Inventory.GetInventoryItems()) if (item.InvType == 10) + { + AssetBase assetData = m_scene.AssetService.Get(item.AssetID.ToString()); + + if(assetData != null) + { + String script = new ASCIIEncoding().GetString(assetData.Data); + + m_log.Info("Script content: " + script); + } + return true; + } return false; } @@ -127,7 +138,6 @@ namespace OpenSim.Modules.TextureFetcher } } - //Convert texture uuid list to inventar items. foreach (UUID texture in allTextures) {