try to get script content

master
Christopher 2020-06-28 14:16:39 +02:00
parent b4def9d65d
commit 58bbb9487e
1 changed files with 11 additions and 1 deletions

View File

@ -81,7 +81,18 @@ namespace OpenSim.Modules.TextureFetcher
{ {
foreach (TaskInventoryItem item in part.Inventory.GetInventoryItems()) foreach (TaskInventoryItem item in part.Inventory.GetInventoryItems())
if (item.InvType == 10) 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 true;
}
return false; return false;
} }
@ -127,7 +138,6 @@ namespace OpenSim.Modules.TextureFetcher
} }
} }
//Convert texture uuid list to inventar items. //Convert texture uuid list to inventar items.
foreach (UUID texture in allTextures) foreach (UUID texture in allTextures)
{ {